supports build of RPM packages, tested on openSUSE; closes #5

master
Marc Wäckerlin 13 years ago
parent 87a9580ff9
commit daf389ed35
  1. 8
      doc/makefile.am
  2. 22
      libxml-cxx.spec.in
  3. 8
      makefile.am

@ -42,9 +42,9 @@ dist-hook: ${devel_DATA}
cp -r html ${distdir}/ cp -r html ${distdir}/
install-data-hook: install-data-hook:
chmod -R u+w ${develdir} chmod -R u+w $(DESTDIR)${develdir}
cp -r html/* ${develdir}/ cp -r html/* $(DESTDIR)${develdir}/
uninstall-hook: uninstall-hook:
-chmod -R u+w ${develdir} -chmod -R u+w $(DESTDIR)${develdir}
-rm -rf ${develdir}/* -rm -rf $(DESTDIR)${develdir}/*

@ -4,9 +4,9 @@ Version: @VERSION@
Release: 1 Release: 1
License: LGPL License: LGPL
Group: Development/Libraries/C++ 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 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
@ -32,10 +32,14 @@ rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/lib/libxml-cxx.so.0.0.0 /usr/lib/@PACKAGENAME@.so.*
/usr/lib/libxml-cxx.so.0
%doc %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 %package devel
Summary: XML C++ Library (development files) Summary: XML C++ Library (development files)
@ -50,12 +54,14 @@ This Package contains all files required for developement.
%files devel %files devel
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/lib/libxml-cxx.so /usr/lib/@PACKAGENAME@.so
/usr/lib/libxml-cxx.a /usr/lib/@PACKAGENAME@.a
/usr/lib/pkgconfig /usr/lib/pkgconfig
/usr/lib/libxml-cxx.la /usr/lib/@PACKAGENAME@.la
/usr/include/ /usr/include/
/usr/share/pkgconfig /usr/share/pkgconfig
%doc
/usr/share/doc/packages/@PACKAGENAME@/doc
%changelog %changelog
* Wed Apr 21 2010 Marc Wäckerlin <marc@dev0002.int.swisssign.net> - cxx-1 * Wed Apr 21 2010 Marc Wäckerlin <marc@dev0002.int.swisssign.net> - cxx-1

@ -41,10 +41,10 @@ tag: distcheck
cvs ci -R . cvs ci -R .
cvs tag -FR REL_@PACKAGENAME@-@MAJOR@-@MINOR@-@LEAST@ . cvs tag -FR REL_@PACKAGENAME@-@MAJOR@-@MINOR@-@LEAST@ .
#rpm: dist rpm: dist
# cp @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \ cp @PACKAGENAME@-@MAJOR@.@MINOR@.@LEAST@.tar.gz \
# /usr/src/packages/SOURCES/ /usr/src/packages/SOURCES/
# rpmbuild -ba --clean @PACKAGENAME@.spec rpmbuild -ba --clean @PACKAGENAME@.spec
deps = ${top_srcdir}/COPYING ${top_srcdir}/README ${top_srcdir}/INSTALL ${top_srcdir}/NEWS ${top_srcdir}/ChangeLog deps = ${top_srcdir}/COPYING ${top_srcdir}/README ${top_srcdir}/INSTALL ${top_srcdir}/NEWS ${top_srcdir}/ChangeLog

Loading…
Cancel
Save