repair rpm build
This commit is contained in:
@@ -1,25 +1,35 @@
|
||||
Summary: XML C++ Library
|
||||
Summary: @DESCRIPTION@
|
||||
Name: @PACKAGE_NAME@
|
||||
Version: @PACKAGE_VERSION@
|
||||
Release: 1
|
||||
Version: @VERSION@
|
||||
Release: @BUILD_NUMBER@%{?dist}
|
||||
License: LGPL
|
||||
Group: Development/Libraries/C++
|
||||
URL: https://dev.marc.waeckerlin.org/projects/@PACKAGE_NAME@
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
BuildRequires: subversion gcc-c++ doxygen graphviz texlive automake autoconf libtool make
|
||||
BuildRequires: gnupg, subversion, automake, autoconf, doxygen, graphviz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
|
||||
BuildRequires: cppunit-devel
|
||||
%else%if 0%{?suse_version} || 0%{?sles_version}
|
||||
BuildRequires: libcppunit-devel
|
||||
%endif%endif
|
||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?centos} || 0%{?centos_ver} || 0%{?centos_version}
|
||||
BuildRequires: pkgconfig, redhat-lsb, cppunit-devel
|
||||
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl}
|
||||
BuildRequires: mscgen
|
||||
|
||||
%else
|
||||
|
||||
%endif
|
||||
%else%if 0%{?suse_version} || 0%{?sles_version}
|
||||
BuildRequires: pkg-config, lsb-release, libcppunit-devel
|
||||
%if 0%{?suse_version} < 1200 || 0%{?sles_version} < 1200
|
||||
|
||||
%else
|
||||
|
||||
%endif
|
||||
%endif%endif
|
||||
|
||||
%description
|
||||
@README@
|
||||
|
||||
This package contains only the shared libraries required at runtime.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
./configure --prefix=/usr \
|
||||
@@ -47,10 +57,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/README
|
||||
|
||||
%package devel
|
||||
Summary: XML C++ Library (development files)
|
||||
Summary: @DESCRIPTION@
|
||||
Group: Development/Libraries/C++
|
||||
Requires: @PACKAGE_NAME@ = @PACKAGE_VERSION@
|
||||
|
||||
Requires: @PACKAGE_NAME@ = @VERSION@
|
||||
|
||||
%description devel
|
||||
@README@
|
||||
@@ -61,14 +70,11 @@ This Package contains all files required for developement.
|
||||
%defattr(-,root,root,-)
|
||||
/usr/%_lib/@PACKAGE_NAME@.so
|
||||
/usr/%_lib/@PACKAGE_NAME@.a
|
||||
/usr/%_lib/pkgconfig
|
||||
/usr/%_lib/@PACKAGE_NAME@.la
|
||||
/usr/%_lib/pkgconfig
|
||||
/usr/include/
|
||||
/usr/share/pkgconfig
|
||||
%doc
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/html
|
||||
/usr/share/doc/packages/@PACKAGE_NAME@/@PACKAGE_NAME@.spec
|
||||
|
||||
%changelog
|
||||
* Wed Apr 21 2010 Marc Wäckerlin <marc@dev0002.int.swisssign.net> - cxx-1
|
||||
- Initial build.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user