]> git.pld-linux.org Git - packages/netcf.git/blame - netcf.spec
- updated to 0.2.4
[packages/netcf.git] / netcf.spec
CommitLineData
6b73c975
JB
1# TODO: enhance pld_interfaces patch, including PLDifing netcf-transaction (or disabling it)
2# maybe create drv_pld.c?
40da3b70
JB
3Summary: netcf - a cross-platform network configuration library
4Summary(pl.UTF-8): netcf - wieloplatformowa biblioteka do konfiguracji sieci
c53373b1 5Name: netcf
1e525c96
JB
6Version: 0.2.4
7Release: 1
40da3b70 8License: GPL v2
c53373b1 9Group: Administration/System
10Source0: https://fedorahosted.org/released/netcf/%{name}-%{version}.tar.gz
1e525c96 11# Source0-md5: 91d3a8e26544406ad4b3a1ee376ef6d8
d9b6e133 12Patch0: %{name}-pld_interfaces.patch
1e525c96 13Patch1: %{name}-systemd.patch
c53373b1 14URL: https://fedorahosted.org/netcf/
9c10aa8b
JB
15BuildRequires: autoconf >= 2.50
16BuildRequires: automake >= 1:1.11
17BuildRequires: augeas-devel >= 0.5.0
6b73c975 18BuildRequires: libnl-devel >= 3.2
9c10aa8b
JB
19BuildRequires: libtool
20BuildRequires: libxml2-devel >= 2.0
c53373b1 21BuildRequires: libxslt-devel
9c10aa8b 22Requires: augeas >= 0.5.0
c53373b1 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
40da3b70 26netcf is a cross-platform network configuration library.
c53373b1 27
28%description -l pl.UTF-8
40da3b70 29netcf to wieloplatformowa biblioteka do konfiguracji sieci.
c53373b1 30
31%package libs
40da3b70
JB
32Summary: Netcf library
33Summary(pl.UTF-8): Biblioteka netcf
c53373b1 34Group: Libraries
9c10aa8b 35Requires: augeas-libs >= 0.5.0
c53373b1 36
37%description libs
40da3b70 38This package contains the netcf shared library.
c53373b1 39
40%description libs -l pl.UTF-8
40da3b70 41Ten pakiet zawiera bibliotekę współdzieloną netcf.
c53373b1 42
43%package devel
44Summary: Netcf development files
45Summary(pl.UTF-8): Pliki programistyczne netcf
46Group: Development/Libraries
47Requires: %{name}-libs = %{version}-%{release}
9c10aa8b
JB
48Requires: augeas-devel >= 0.5.0
49Requires: libxml2-devel >= 2.0
50Requires: libxslt-devel
c53373b1 51
52%description devel
53This package contains the include files used to develop using netcf
54APIs.
55
56%description devel -l pl.UTF-8
57Ten pakiet zawiera pliki nagłówkow służące do programowania z użyciem
58API netcf.
59
60%package static
40da3b70
JB
61Summary: The netcf static library
62Summary(pl.UTF-8): Statyczna biblioteka netcf
c53373b1 63Group: Development/Libraries
64Requires: %{name}-devel = %{version}-%{release}
65
66%description static
40da3b70 67This package contains the netcf static library.
c53373b1 68
69%description static -l pl.UTF-8
40da3b70 70Ten 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
91rm -rf $RPM_BUILD_ROOT
92%{__make} install \
1e525c96
JB
93 DESTDIR=$RPM_BUILD_ROOT \
94 SYSTEMD_UNIT_DIR=%{systemdunitdir}
c53373b1 95
c53373b1 96%clean
97rm -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
This page took 0.109365 seconds and 4 git commands to generate.