]> git.pld-linux.org Git - packages/libgtop.git/blob - libgtop.spec
- removed all Group fields translations (oure rpm now can handle translating
[packages/libgtop.git] / libgtop.spec
1 Summary:        LibGTop library
2 Summary(pl):    Biblioteka LibGTop
3 Name:           libgtop
4 Version:        1.0.12
5 Release:        6
6 Epoch:          1
7 License:        LGPL
8 Group:          X11/Libraries
9 Source0:        ftp://ftp.gnome.org/pub/GNOME/stable/sources/libgtop/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-info.patch
11 Patch1:         %{name}-AM_GNU_GETTEXT.patch
12 Patch2:         %{name}-amfix.patch
13 URL:            http://www.home-of-linux.org/gnome/libgtop/
14 BuildRequires:  ORBit-devel
15 BuildRequires:  XFree86-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  bc
19 BuildRequires:  gettext-devel >= 0.10.35-9
20 BuildRequires:  gdbm-devel
21 BuildRequires:  glib-devel >= 1.2.0
22 BuildRequires:  gnome-libs-devel
23 BuildRequires:  guile-devel
24 BuildRequires:  libtool
25 BuildRequires:  zlib-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Obsoletes:      libgtop-examples
28
29 %define         _prefix         /usr/X11R6
30
31 %description
32 A library that fetches information about the running system such as
33 cpu and memory usage, active processes etc. On Linux systems, these
34 information are taken directly from the /proc filesystem while on
35 other systems a server is used to read those information from
36 /dev/kmem or whatever.
37
38 %description -l pl
39 LibGTop jest bibliotek± do pozyskiwania informacji o uruchomionych
40 procesach jak zajêto¶æ pamiêci i czasu procesora, aktywnych procesach
41 itd. Na Linuxie powy¿sze informacje s± pozyskiwane bezpo¶rednio z
42 systemu plikowego znajduj±cego siê w /proc, a na innych do pozyskania
43 powy¿szych informacji wykorzystywane jest urz±dzenie /dev/kmem lub
44 jeszcze w inny sposób zale¿ny od systemu.
45
46 %package devel
47 Summary:        Header files and etc for develop LibGTop applications
48 Summary(pl):    Pliki nag³ówkowe dla LibGTop
49 Group:          X11/Development/Libraries
50 Requires:       %{name} = %{version}
51
52 %description devel
53 Header files and etc for develop LibGTop applications.
54
55 %description devel -l pl
56 Pliki nag³ówkowe i inne potrzebne do tworzenia programów opartych o
57 LibGTop.
58
59 %package static
60 Summary:        Static LibGTop libraries
61 Summary(pl):    Biblioteki statyczne LibGTop
62 Group:          X11/Development/Libraries
63 Requires:       %{name}-devel = %{version}
64
65 %description static
66 Static LibGTop libraries.
67
68 %description static -l pl
69 Biblioteki statyczne LibGTop.
70
71 %prep
72 %setup -q
73 %patch0 -p1
74 %patch1 -p1
75 %patch2 -p1
76
77 (cd src/daemon
78 sed -e 's/.*-static//' Makefile.am > Makefile.am.tmp
79 mv -f Makefile.am.tmp Makefile.am
80 )
81
82 %build
83 rm -f missing
84 libtoolize --copy --force
85 gettextize --copy --force
86 aclocal -I macros -I .
87 autoconf
88 automake -a -c
89 %configure \
90         --without-linux-table \
91         --with-libgtop-inodedb \
92         --with-libgtop-smp
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %{__make} install DESTDIR=$RPM_BUILD_ROOT
99
100 gzip -9nf src/inodedb/README.inodedb \
101         RELNOTES* AUTHORS ChangeLog NEWS README
102
103 %find_lang %{name}
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post   -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
110
111 %post devel
112 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
113
114 %postun devel
115 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
116
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc src/inodedb/README.inodedb.gz
120
121 %attr(755,root,root) %{_libdir}/lib*.so.*.*
122 %attr(755,root,root) %{_bindir}/file_by_inode
123 %attr(755,root,root) %{_bindir}/libgtop_daemon
124 %attr(755,root,root) %{_bindir}/mkinodedb
125
126 %{_libdir}/libgtop-features.def
127
128 %files devel
129 %defattr(644,root,root,755)
130 %doc {RELNOTES*,AUTHORS,ChangeLog,NEWS,README}.gz
131 %attr(755,root,root) %{_bindir}/libgtop-config
132 %attr(755,root,root) %{_libdir}/lib*.so
133 %attr(755,root,root) %{_libdir}/*.sh
134 %attr(755,root,root) %{_libdir}/*.la
135 %{_libdir}/*.def
136 %{_includedir}/*
137 %{_infodir}/*info*
138
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/lib*.a
This page took 0.036063 seconds and 4 git commands to generate.