From a1060535d17115bb57465518c759358a3f3f3a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 26 Apr 2010 06:37:14 +0000 Subject: [PATCH] started with spec file, refs #5 --- configure.in | 6 ++++- libxml-cxx.spec.in | 62 ++++++++++++++++++++++++++++++++++++++++++++++ makefile.am | 2 +- 3 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 libxml-cxx.spec.in diff --git a/configure.in b/configure.in index 0695a04..0c88704 100644 --- a/configure.in +++ b/configure.in @@ -26,12 +26,16 @@ AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org]) AC_CONFIG_FILES(makefile src/makefile test/makefile doc/examples/makefile doc/doxyfile doc/makefile - src/libxml-cxx.pc debian/changelog) + src/libxml-cxx.pc debian/changelog + libxml-cxx.spec) AC_SUBST(MAJOR) AC_SUBST(MINOR) AC_SUBST(LEAST) +README=README +AC_SUBST_FILE(README) + # libtool versioning LIB_MAJOR=m4_eval(x_major+x_minor) LIB_MINOR=$LEAST diff --git a/libxml-cxx.spec.in b/libxml-cxx.spec.in new file mode 100644 index 0000000..957f4a0 --- /dev/null +++ b/libxml-cxx.spec.in @@ -0,0 +1,62 @@ +Summary: XML C++ Library +Name: @PACKAGENAME@ +Version: @VERSION@ +Release: 1 +License: LGPL +Group: Development/Libraries/C++ +URL: https://dev.marc.waeckerlin.org/projects/libxml-cxx +Source0: %{name}-%{version}.tar.gz +BuildRequires: libproxy-devel gcc-c++ doxygen graphviz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + + +%description +@README@ + +This package contains only the shared libraries required at runtime. + +%prep +%setup -q +./configure --prefix=/usr \ + --datadir=/usr/share/doc/packages \ + --libdir=/usr/lib + +%build +make + +%install +DESTDIR=$RPM_BUILD_ROOT make install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +/usr/lib/libxml-cxx.so.0.0.0 +/usr/lib/libxml-cxx.so.0 +%doc +/usr/share/doc/packages/@PACKAGENAME@ + +%package devel +Summary: XML C++ Library (development files) +Group: Development/Libraries/C++ +Requires: @PACKAGENAME@ = @VERSION@ + + +%description devel +@README@ + +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/pkgconfig +/usr/lib/libxml-cxx.la +/usr/include/ +/usr/share/pkgconfig + +%changelog +* Wed Apr 21 2010 Marc Wäckerlin - cxx-1 +- Initial build. diff --git a/makefile.am b/makefile.am index 4be9d55..717826a 100644 --- a/makefile.am +++ b/makefile.am @@ -17,7 +17,7 @@ nobase_include_HEADERS = EXTRA_DIST = bootstrap.sh debian -DISTCLEANFILES = debian/changelog +DISTCLEANFILES = debian/changelog libxml-cxx.spec ARCHS = i386 amd64