]>
Commit | Line | Data |
---|---|---|
6b73c975 JB |
1 | # TODO: enhance pld_interfaces patch, including PLDifing netcf-transaction (or disabling it) |
2 | # maybe create drv_pld.c? | |
40da3b70 JB |
3 | Summary: netcf - a cross-platform network configuration library |
4 | Summary(pl.UTF-8): netcf - wieloplatformowa biblioteka do konfiguracji sieci | |
c53373b1 | 5 | Name: netcf |
1e525c96 JB |
6 | Version: 0.2.4 |
7 | Release: 1 | |
40da3b70 | 8 | License: GPL v2 |
c53373b1 | 9 | Group: Administration/System |
10 | Source0: https://fedorahosted.org/released/netcf/%{name}-%{version}.tar.gz | |
1e525c96 | 11 | # Source0-md5: 91d3a8e26544406ad4b3a1ee376ef6d8 |
d9b6e133 | 12 | Patch0: %{name}-pld_interfaces.patch |
1e525c96 | 13 | Patch1: %{name}-systemd.patch |
c53373b1 | 14 | URL: https://fedorahosted.org/netcf/ |
9c10aa8b JB |
15 | BuildRequires: autoconf >= 2.50 |
16 | BuildRequires: automake >= 1:1.11 | |
17 | BuildRequires: augeas-devel >= 0.5.0 | |
6b73c975 | 18 | BuildRequires: libnl-devel >= 3.2 |
9c10aa8b JB |
19 | BuildRequires: libtool |
20 | BuildRequires: libxml2-devel >= 2.0 | |
c53373b1 | 21 | BuildRequires: libxslt-devel |
9c10aa8b | 22 | Requires: augeas >= 0.5.0 |
c53373b1 | 23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
40da3b70 | 26 | netcf is a cross-platform network configuration library. |
c53373b1 | 27 | |
28 | %description -l pl.UTF-8 | |
40da3b70 | 29 | netcf to wieloplatformowa biblioteka do konfiguracji sieci. |
c53373b1 | 30 | |
31 | %package libs | |
40da3b70 JB |
32 | Summary: Netcf library |
33 | Summary(pl.UTF-8): Biblioteka netcf | |
c53373b1 | 34 | Group: Libraries |
9c10aa8b | 35 | Requires: augeas-libs >= 0.5.0 |
c53373b1 | 36 | |
37 | %description libs | |
40da3b70 | 38 | This package contains the netcf shared library. |
c53373b1 | 39 | |
40 | %description libs -l pl.UTF-8 | |
40da3b70 | 41 | Ten pakiet zawiera bibliotekę współdzieloną netcf. |
c53373b1 | 42 | |
43 | %package devel | |
44 | Summary: Netcf development files | |
45 | Summary(pl.UTF-8): Pliki programistyczne netcf | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-libs = %{version}-%{release} | |
9c10aa8b JB |
48 | Requires: augeas-devel >= 0.5.0 |
49 | Requires: libxml2-devel >= 2.0 | |
50 | Requires: libxslt-devel | |
c53373b1 | 51 | |
52 | %description devel | |
53 | This package contains the include files used to develop using netcf | |
54 | APIs. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Ten pakiet zawiera pliki nagłówkow służące do programowania z użyciem | |
58 | API netcf. | |
59 | ||
60 | %package static | |
40da3b70 JB |
61 | Summary: The netcf static library |
62 | Summary(pl.UTF-8): Statyczna biblioteka netcf | |
c53373b1 | 63 | Group: Development/Libraries |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
40da3b70 | 67 | This package contains the netcf static library. |
c53373b1 | 68 | |
69 | %description static -l pl.UTF-8 | |
40da3b70 | 70 | Ten pakiet zawiera statyczną bibliotekę netcf. |
c53373b1 | 71 | |
72 | %prep | |
73 | %setup -q | |
d9b6e133 | 74 | %patch0 -p1 |
1e525c96 | 75 | %patch1 -p1 -b .orig |
c53373b1 | 76 | |
77 | %build | |
9c10aa8b JB |
78 | %{__libtoolize} |
79 | %{__aclocal} -I gnulib/m4 | |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82 | %{__automake} | |
83 | %configure \ | |
84 | --disable-silent-rules \ | |
1e525c96 JB |
85 | --with-driver=redhat \ |
86 | --with-sysinit=both | |
c53373b1 | 87 | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | %{__make} install \ | |
1e525c96 JB |
93 | DESTDIR=$RPM_BUILD_ROOT \ |
94 | SYSTEMD_UNIT_DIR=%{systemdunitdir} | |
c53373b1 | 95 | |
c53373b1 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
c53373b1 | 99 | %post libs -p /sbin/ldconfig |
100 | %postun libs -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
40da3b70 | 104 | %attr(755,root,root) %{_bindir}/ncftool |
9c10aa8b | 105 | %attr(754,root,root) /etc/rc.d/init.d/netcf-transaction |
1e525c96 JB |
106 | %attr(754,root,root) %{_libexecdir}/netcf-transaction.sh |
107 | %{systemdunitdir}/netcf-transaction.service | |
c53373b1 | 108 | %{_datadir}/netcf |
6b73c975 | 109 | %{_mandir}/man1/ncftool.1* |
c53373b1 | 110 | |
111 | %files libs | |
112 | %defattr(644,root,root,755) | |
1e525c96 | 113 | %doc AUTHORS NEWS README |
c53373b1 | 114 | %attr(755,root,root) %{_libdir}/libnetcf.so.*.*.* |
115 | %attr(755,root,root) %ghost %{_libdir}/libnetcf.so.1 | |
116 | ||
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
40da3b70 | 119 | %attr(755,root,root) %{_libdir}/libnetcf.so |
c53373b1 | 120 | %{_libdir}/libnetcf.la |
c53373b1 | 121 | %{_includedir}/netcf.h |
40da3b70 | 122 | %{_pkgconfigdir}/netcf.pc |
c53373b1 | 123 | |
124 | %files static | |
125 | %defattr(644,root,root,755) | |
126 | %{_libdir}/libnetcf.a |