started with spec file, refs #5
This commit is contained in:
@@ -26,12 +26,16 @@ AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org])
|
|||||||
AC_CONFIG_FILES(makefile
|
AC_CONFIG_FILES(makefile
|
||||||
src/makefile test/makefile doc/examples/makefile
|
src/makefile test/makefile doc/examples/makefile
|
||||||
doc/doxyfile doc/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(MAJOR)
|
||||||
AC_SUBST(MINOR)
|
AC_SUBST(MINOR)
|
||||||
AC_SUBST(LEAST)
|
AC_SUBST(LEAST)
|
||||||
|
|
||||||
|
README=README
|
||||||
|
AC_SUBST_FILE(README)
|
||||||
|
|
||||||
# libtool versioning
|
# libtool versioning
|
||||||
LIB_MAJOR=m4_eval(x_major+x_minor)
|
LIB_MAJOR=m4_eval(x_major+x_minor)
|
||||||
LIB_MINOR=$LEAST
|
LIB_MINOR=$LEAST
|
||||||
|
62
libxml-cxx.spec.in
Normal file
62
libxml-cxx.spec.in
Normal file
@@ -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 <marc@dev0002.int.swisssign.net> - cxx-1
|
||||||
|
- Initial build.
|
@@ -17,7 +17,7 @@ nobase_include_HEADERS =
|
|||||||
|
|
||||||
EXTRA_DIST = bootstrap.sh debian
|
EXTRA_DIST = bootstrap.sh debian
|
||||||
|
|
||||||
DISTCLEANFILES = debian/changelog
|
DISTCLEANFILES = debian/changelog libxml-cxx.spec
|
||||||
|
|
||||||
ARCHS = i386 amd64
|
ARCHS = i386 amd64
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user