mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
87 lines
2.0 KiB
RPMSpec
87 lines
2.0 KiB
RPMSpec
Name: ULib
|
|
Summary: ULib C++ library - A package for creating small and fast C++ programs
|
|
Version: @ULIB_VERSION@
|
|
Release: 1
|
|
Epoch: 0
|
|
License: LGPL
|
|
Group: Development/Libraries
|
|
URL: http://www.unirel.com
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
Provides: ULib
|
|
Packager: Stefano Casazza <stefano.casazza@gmail.com>
|
|
|
|
@RPM_REQUIRE@
|
|
|
|
%package devel
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}
|
|
Requires: libstdc++-devel
|
|
Group: Development/Libraries
|
|
Summary: Headers and link library for ULib
|
|
|
|
%description
|
|
ULib C++ offers abstraction of system services such as sockets.
|
|
ULib C++ also provides a class framework for strings, config file and XML parsing, and SOAP protocol.
|
|
|
|
%description devel
|
|
This package provides the header files, link libraries and documentation for building ULib C++ applications.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
%configure @RPM_CONFIGURE@
|
|
make LDFLAGS="-s"
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%makeinstall
|
|
mkdir -p %{buildroot}/usr/share/aclocal
|
|
mkdir -p %{buildroot}/usr/libexec/usp
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc AUTHORS COPYING NEWS README TODO ChangeLog
|
|
%{_bindir}/uclient
|
|
%{_bindir}/userver_*
|
|
%{_libdir}/*.so.*
|
|
%{_sysconfdir}/*.cfg*
|
|
%{_libexecdir}/mod_*.*
|
|
%{_libexecdir}/usp/*.*
|
|
%dir %{_libexecdir}/usp
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/uclient
|
|
%{_bindir}/userver_*
|
|
%{_libdir}/*.a
|
|
%{_libdir}/*.so
|
|
%{_libdir}/*.la
|
|
%{_sysconfdir}/*.cfg*
|
|
%dir %{_includedir}/ulib
|
|
%{_includedir}/ulib/*.h
|
|
%{_includedir}/ulib/README
|
|
%{_includedir}/ulib/*/*.h
|
|
%{_includedir}/ulib/*/*/*.h
|
|
%{_includedir}/ulib/*/*/*/*.h
|
|
%{_includedir}/ulib/flex/flex.skl
|
|
%{_includedir}/ulib/flex/bison.skl
|
|
%{_includedir}/ulib/flex/bison_head.yy
|
|
%{_includedir}/ulib/flex/flexer_head.ll
|
|
%{_datadir}/aclocal/*.m4
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%{_libexecdir}/mod_*.a
|
|
%{_libexecdir}/mod_*.so
|
|
%{_libexecdir}/mod_*.la
|
|
%{_libexecdir}/usp/*.a
|
|
%{_libexecdir}/usp/*.so
|
|
%{_libexecdir}/usp/*.la
|
|
%dir %{_libexecdir}/usp
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|