1 # TODO: enhance pld_interfaces patch, including PLDifing netcf-transaction (or disabling it)
2 # maybe create drv_pld.c?
3 Summary: netcf - a cross-platform network configuration library
4 Summary(pl.UTF-8): netcf - wieloplatformowa biblioteka do konfiguracji sieci
9 Group: Administration/System
10 Source0: http://releases.pagure.org/netcf/%{name}-%{version}.tar.gz
11 # Source0-md5: 8edfc9a5856468ae4f8ee97415a3dbf3
12 Patch0: %{name}-pld_interfaces.patch
13 Patch1: %{name}-systemd.patch
14 URL: https://pagure.io/netcf/
15 BuildRequires: autoconf >= 2.50
16 BuildRequires: automake >= 1:1.11
17 BuildRequires: augeas-devel >= 0.5.0
18 BuildRequires: libnl-devel >= 3.2
19 BuildRequires: libtool
20 BuildRequires: libxml2-devel >= 2.0
21 BuildRequires: libxslt-devel
22 Requires: augeas >= 0.5.0
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 netcf is a cross-platform network configuration library.
28 %description -l pl.UTF-8
29 netcf to wieloplatformowa biblioteka do konfiguracji sieci.
32 Summary: Netcf library
33 Summary(pl.UTF-8): Biblioteka netcf
35 Requires: augeas-libs >= 0.5.0
38 This package contains the netcf shared library.
40 %description libs -l pl.UTF-8
41 Ten pakiet zawiera bibliotekę współdzieloną netcf.
44 Summary: Netcf development files
45 Summary(pl.UTF-8): Pliki programistyczne netcf
46 Group: Development/Libraries
47 Requires: %{name}-libs = %{version}-%{release}
48 Requires: augeas-devel >= 0.5.0
49 Requires: libxml2-devel >= 2.0
50 Requires: libxslt-devel
53 This package contains the include files used to develop using netcf
56 %description devel -l pl.UTF-8
57 Ten pakiet zawiera pliki nagłówkow służące do programowania z użyciem
61 Summary: The netcf static library
62 Summary(pl.UTF-8): Statyczna biblioteka netcf
63 Group: Development/Libraries
64 Requires: %{name}-devel = %{version}-%{release}
67 This package contains the netcf static library.
69 %description static -l pl.UTF-8
70 Ten pakiet zawiera statyczną bibliotekę netcf.
79 %{__aclocal} -I gnulib/m4
84 --disable-silent-rules \
85 --with-driver=redhat \
91 rm -rf $RPM_BUILD_ROOT
93 DESTDIR=$RPM_BUILD_ROOT \
94 SYSTEMD_UNIT_DIR=%{systemdunitdir}
96 # obsoleted by pkg-config
97 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libnetcf.la
100 rm -rf $RPM_BUILD_ROOT
102 %post libs -p /sbin/ldconfig
103 %postun libs -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_bindir}/ncftool
108 %attr(754,root,root) /etc/rc.d/init.d/netcf-transaction
109 %attr(754,root,root) %{_libexecdir}/netcf-transaction.sh
110 %{systemdunitdir}/netcf-transaction.service
112 %{_mandir}/man1/ncftool.1*
115 %defattr(644,root,root,755)
116 %doc AUTHORS NEWS README
117 %attr(755,root,root) %{_libdir}/libnetcf.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libnetcf.so.1
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_libdir}/libnetcf.so
123 %{_includedir}/netcf.h
124 %{_pkgconfigdir}/netcf.pc
127 %defattr(644,root,root,755)
128 %{_libdir}/libnetcf.a