supports build of RPM packages, tested on openSUSE; closes #5
This commit is contained in:
@@ -42,9 +42,9 @@ dist-hook: ${devel_DATA}
|
||||
cp -r html ${distdir}/
|
||||
|
||||
install-data-hook:
|
||||
chmod -R u+w ${develdir}
|
||||
cp -r html/* ${develdir}/
|
||||
chmod -R u+w $(DESTDIR)${develdir}
|
||||
cp -r html/* $(DESTDIR)${develdir}/
|
||||
|
||||
uninstall-hook:
|
||||
-chmod -R u+w ${develdir}
|
||||
-rm -rf ${develdir}/*
|
||||
-chmod -R u+w $(DESTDIR)${develdir}
|
||||
-rm -rf $(DESTDIR)${develdir}/*
|
||||
|
@@ -4,9 +4,9 @@ Version: @VERSION@
|
||||
Release: 1
|
||||
License: LGPL
|
||||
Group: Development/Libraries/C++
|
||||
URL: https://dev.marc.waeckerlin.org/projects/libxml-cxx
|
||||
URL: https://dev.marc.waeckerlin.org/projects/@PACKAGENAME@
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
BuildRequires: libproxy-devel gcc-c++ doxygen graphviz
|
||||
BuildRequires: subversion libcppunit-devel gcc-c++ doxygen graphviz texlive automake autoconf libtool make
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||
|
||||
|
||||
@@ -32,10 +32,14 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
/usr/lib/libxml-cxx.so.0.0.0
|
||||
/usr/lib/libxml-cxx.so.0
|
||||
/usr/lib/@PACKAGENAME@.so.*
|
||||
%doc
|
||||
/usr/share/doc/packages/@PACKAGENAME@
|
||||
/usr/share/doc/packages/@PACKAGENAME@/AUTHORS
|
||||
/usr/share/doc/packages/@PACKAGENAME@/COPYING
|
||||
/usr/share/doc/packages/@PACKAGENAME@/ChangeLog
|
||||
/usr/share/doc/packages/@PACKAGENAME@/INSTALL
|
||||
/usr/share/doc/packages/@PACKAGENAME@/NEWS
|
||||
/usr/share/doc/packages/@PACKAGENAME@/README
|
||||
|
||||
%package devel
|
||||
Summary: XML C++ Library (development files)
|
||||
@@ -50,12 +54,14 @@ This Package contains all files required for developement.
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
/usr/lib/libxml-cxx.so
|
||||
/usr/lib/libxml-cxx.a
|
||||
/usr/lib/@PACKAGENAME@.so
|
||||
/usr/lib/@PACKAGENAME@.a
|
||||
/usr/lib/pkgconfig
|
||||
/usr/lib/libxml-cxx.la
|
||||
/usr/lib/@PACKAGENAME@.la
|
||||
/usr/include/
|
||||
/usr/share/pkgconfig
|
||||
%doc
|
||||
/usr/share/doc/packages/@PACKAGENAME@/doc
|
||||
|
||||
%changelog
|
||||
* Wed Apr 21 2010 Marc Wäckerlin <marc@dev0002.int.swisssign.net> - cxx-1
|
||||
|
@@ -41,10 +41,10 @@ tag: distcheck
|
||||
cvs ci -R .
|
||||
cvs tag -FR REL_@PACKAGENAME@-@MAJOR@-@MINOR@-@LEAST@ .
|
||||
|
||||
#rpm: dist
|
||||
# cp @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \
|
||||
# /usr/src/packages/SOURCES/
|
||||
# rpmbuild -ba --clean @PACKAGENAME@.spec
|
||||
rpm: dist
|
||||
cp @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \
|
||||
/usr/src/packages/SOURCES/
|
||||
rpmbuild -ba --clean @PACKAGENAME@.spec
|
||||
|
||||
deps = ${top_srcdir}/COPYING ${top_srcdir}/README ${top_srcdir}/INSTALL ${top_srcdir}/NEWS ${top_srcdir}/ChangeLog
|
||||
|
||||
|
Reference in New Issue
Block a user