]> git.pld-linux.org Git - packages/attr.git/blob - attr.spec
- updated to 2.4.48
[packages/attr.git] / attr.spec
1 Summary:        Utility for managing filesystem extended attributes
2 Summary(pl.UTF-8):      Narzędzia do zarządzania rozszerzonymi atrybutami systemu plików
3 Name:           attr
4 Version:        2.4.48
5 Release:        1
6 License:        LGPL v2+ (library), GPL v2+ (utilities)
7 Group:          Applications/System
8 Source0:        http://git.savannah.gnu.org/cgit/attr.git/snapshot/%{name}-%{version}.tar.gz
9 # Source0-md5:  728d7f7f1b6ccbe03efc8d5c76eb5891
10 URL:            http://savannah.nongnu.org/projects/attr/
11 BuildRequires:  autoconf >= 2.50
12 BuildRequires:  automake >= 1:1.11
13 BuildRequires:  gettext-tools >= 0.18.2
14 BuildRequires:  libtool >= 2:2
15 BuildRequires:  rpmbuild(macros) >= 1.402
16 BuildRequires:  sed >= 4.0
17 Obsoletes:      libattr
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _bindir         /bin
21
22 %description
23 An experimental attr command to manipulate extended attributes under
24 Linux.
25
26 %description -l pl.UTF-8
27 Eksperymentalna wersja polecenia attr to zarządzania rozszerzonymi
28 atrybutami pod systemem Linux.
29
30 %package devel
31 Summary:        Header files and libraries to use extended attributes
32 Summary(pl.UTF-8):      Pliki nagłówkowe i biblioteki do korzystania z rozszerzonych atrybutów
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 Header files to develop software which manipulate extended attributes.
38
39 %description devel -l pl.UTF-8
40 Pliki nagłówkowe potrzebne do tworzenia oprogramowania manipulującego
41 rozszerzonymi atrybutami.
42
43 %package static
44 Summary:        Static libraries for extended attributes
45 Summary(pl.UTF-8):      Biblioteki statyczne do korzystania z rozszerzonych atrybutów
46 Group:          Development/Libraries
47 Requires:       %{name}-devel = %{version}-%{release}
48
49 %description static
50 Static libraries for extended attributes.
51
52 %description static -l pl.UTF-8
53 Biblioteki statyczne do korzystania z rozszerzonych atrybutów.
54
55 %prep
56 %setup -q
57
58 %build
59 # prepare for gettextize
60 %{__sed} -i -e 's,po/Makefile.in,,' configure.ac
61
62 po/update-potfiles
63 %{__gettextize}
64 %{__libtoolize}
65 %{__aclocal} -I m4
66 %{__autoconf}
67 %{__autoheader}
68 %{__automake}
69
70 %configure \
71         %{?debug:--enable-debug} \
72         --disable-silent-rules
73
74 %{__make}
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT/%{_lib}
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %{__mv} $RPM_BUILD_ROOT%{_libdir}/libattr.so.* \
84         $RPM_BUILD_ROOT/%{_lib}
85
86 ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libattr.so.*.*.*) \
87         $RPM_BUILD_ROOT%{_libdir}/libattr.so
88
89 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
90
91 %find_lang %{name}
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   -p /sbin/ldconfig
97 %postun -p /sbin/ldconfig
98
99 %files -f %{name}.lang
100 %defattr(644,root,root,755)
101 %doc README doc/CHANGES
102 %attr(755,root,root) %{_bindir}/attr
103 %attr(755,root,root) %{_bindir}/getfattr
104 %attr(755,root,root) %{_bindir}/setfattr
105 %attr(755,root,root) /%{_lib}/libattr.so.*.*.*
106 %attr(755,root,root) %ghost /%{_lib}/libattr.so.1
107 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/xattr.conf
108 %{_mandir}/man1/attr.1*
109 %{_mandir}/man1/getfattr.1*
110 %{_mandir}/man1/setfattr.1*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libattr.so
115 %{_libdir}/libattr.la
116 %{_includedir}/attr
117 %{_pkgconfigdir}/libattr.pc
118 %{_mandir}/man3/attr_*.3*
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/libattr.a
This page took 0.053294 seconds and 3 git commands to generate.