Forráskód Böngészése

procps:
- update to forked version of procps 3.3.9
- add minimum ja.po

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8796 ec354946-7b23-47d6-9f5a-488ba84defc7

daisuke 10 éve
szülő
commit
bf4c5bef6d
1 módosított fájl, 80 hozzáadás és 75 törlés
  1. 80 75
      p/procps/procps-vl.spec

+ 80 - 75
p/procps/procps-vl.spec

@@ -1,21 +1,21 @@
+%define origname procps-ng
+
 Summary: System and process monitoring utilities.
 Name: procps
-Version: 3.2.8
+Version: 3.3.9
 Release: 1%{?_dist_release}
 License: GPL
 Group: Applications/System
-Source: http://procps.sourceforge.net/procps-%{version}.tar.gz
+Url: http://sourceforge.net/projects/procps-ng/
+Source: %{origname}-%{version}.tar.xz
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 Requires(post): /sbin/ldconfig, /bin/rm
 Requires(postun): /sbin/ldconfig
 Obsoletes: procps-X11, pgrep
-Patch4: procps-3.1.15-misc.patch
 
 # Vine patches
-Patch10: procps-3.2.0-make_install.patch
-Patch20: procps-3.2.7-gettext.patch
-# http://bts.vinelinux.org/VineLinux/916
-Patch30: procps-3.2.7-top-color.diff
+Patch10: procps-ng-3.3.9-po-fix.patch
+Source10: procps-ng-3.3.9-ja.po
 
 BuildRequires: ncurses-devel
 
@@ -46,91 +46,96 @@ and CPU activity.
 システムの状態を知るためのユーティリティ集です. 実行中のプロセス, 使用
 可能なメモリ容量, 現在ログインしているユーザの情報等を得ることができます.
 
-%prep
-%setup -q
+%package devel
+Summary:  System and process monitoring utilities
+Group:    Development/Libraries
+Requires: %{name} = %{version}-%{release}
 
-%patch4 -p1 -b .misc
+%description devel
+System and process monitoring utilities development headers
 
-# vine
-%patch10 -p1 -b .mkinst
-%patch20 -p1 -b .gettext
-%patch30 -p1 -b .fix-top-highlight-bug
+%prep
+%setup -q -n %{origname}-%{version}
 
-%build
-PATH=/usr/X11R6/bin:$PATH
+# vine
+%patch10 -p1 -b .fix
+cp -f %{SOURCE10} po/ja.po
 
-%__make %{?_smp_mflags} CC="gcc $RPM_OPT_FLAGS" MANDIR=%{_mandir} W_SHOWFROM=-DW_SHOWFROM lib64=%{_lib}
+echo "ja" > po/LINGUAS
 
-(cd po; %__make)
+%build
+autoreconf --verbose --force --install
+./configure --prefix=/ \
+            --bindir=%{_bindir} \
+            --sbindir=%{_syssbindir} \
+            --libdir=%{_libdir} \
+            --datadir=%{_datadir} \
+            --localedir=%{_datadir}/locale \
+            --mandir=%{_mandir} \
+            --includedir=%{_includedir} \
+            --sysconfdir=%{_sysconfdir} \
+            --docdir=/unwanted \
+            --disable-static \
+            --disable-w-from \
+            --disable-kill \
+            --enable-watch8bit \
+            --enable-skill \
+            --enable-sigwinch \
+            --disable-libselinux \
+            --without-systemd
+
+make CFLAGS="%{optflags}"
+
+make -C po update-po
+make -C po ja.gmo
 
 %install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}/bin %{buildroot}/usr/bin %{buildroot}/sbin
-mkdir -p %{buildroot}%{_mandir}/{man1,man5,man8}
-mkdir -p %{buildroot}/%{_lib} %{buildroot}/usr/X11R6/bin
-mkdir -p %{buildroot}/etc/X11/applnk/Utilities
+make DESTDIR=%{buildroot} install
+make DESTDIR=%{buildroot} -C po install
 
-make ldconfig="/bin/true" DESTDIR=%{buildroot} SHLIBDIR=%{buildroot}/%{_lib} OWNERGROUP= MANDIR=%{_mandir} lib64=%{_lib} install
+mkdir -p %{buildroot}%{_sysconfdir}/sysctl.d
 
-(cd po; %makeinstall)
+# for compatibility
+mkdir -p %{buildroot}%{_sysbindir}
+mv %{buildroot}%{_bindir}/ps %{buildroot}%{_sysbindir}/
+ln -sf %{_sysbindir}/ps %{buildroot}%{_bindir}/ps
 
-%find_lang %{name}
-
-# Remove unpackaged files:
-rm -f %{buildroot}/bin/kill
-rm -f %{buildroot}%{_mandir}/man1/kill.1*
+rm -f %{buildroot}/%{_libdir}/libprocps.la
+rm -rf %{buildroot}/unwanted
+rm -f %{buildroot}%{_bindir}/pidof
 
 %clean
 rm -rf %{buildroot}
 
-%post
-# add libproc to the cache
-/sbin/ldconfig
-# remove obsolete files
-rm -f /etc/psdevtab /etc/psdatabase
+%post -p /sbin/ldconfig
 
 %postun -p /sbin/ldconfig
 
-%files -f %{name}.lang
-%defattr(0644,root,root,755)
-%doc NEWS BUGS TODO
-%attr(755,root,root) /%{_lib}/libproc*
-%attr(555,root,root) /bin/ps
-%attr(555,root,root) /sbin/sysctl
-%attr(555,root,root) /usr/bin/uptime
-%attr(555,root,root) /usr/bin/tload
-%attr(555,root,root) /usr/bin/free
-%attr(555,root,root) /usr/bin/w
-%attr(555,root,root) /usr/bin/top
-%attr(555,root,root) /usr/bin/vmstat
-%attr(555,root,root) /usr/bin/watch
-%attr(555,root,root) /usr/bin/skill
-%attr(555,root,root) /usr/bin/snice
-%attr(555,root,root) /usr/bin/pgrep
-%attr(555,root,root) /usr/bin/pkill
-%attr(555,root,root) /usr/bin/pmap
-%attr(555,root,root) /usr/bin/slabtop
-%attr(555,root,root) /usr/bin/pwdx
-
-%attr(0644,root,root) %{_mandir}/man1/free.1*
-%attr(0644,root,root) %{_mandir}/man1/ps.1*
-%attr(0644,root,root) %{_mandir}/man1/skill.1*
-%attr(0644,root,root) %{_mandir}/man1/snice.1*
-%attr(0644,root,root) %{_mandir}/man1/pgrep.1*
-%attr(0644,root,root) %{_mandir}/man1/pkill.1*
-%attr(0644,root,root) %{_mandir}/man1/pmap.1*
-%attr(0644,root,root) %{_mandir}/man1/pwdx.1*
-%attr(0644,root,root) %{_mandir}/man1/slabtop.1*
-%attr(0644,root,root) %{_mandir}/man1/tload.1*
-%attr(0644,root,root) %{_mandir}/man1/top.1*
-%attr(0644,root,root) %{_mandir}/man1/uptime.1*
-%attr(0644,root,root) %{_mandir}/man1/w.1*
-%attr(0644,root,root) %{_mandir}/man1/watch.1*
-%attr(0644,root,root) %{_mandir}/man8/vmstat.8*
-%attr(0644,root,root) %{_mandir}/man8/sysctl.8*
-%attr(0644,root,root) %{_mandir}/man5/sysctl.conf.5*
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS Documentation/BUGS COPYING COPYING.LIB Documentation/FAQ NEWS README top/README.top Documentation/TODO
+%{_libdir}/libprocps.so.*
+%{_bindir}/*
+%{_sysbindir}/*
+%{_syssbindir}/*
+%{_sysconfdir}/sysctl.d
+%{_mandir}/man1/*
+%{_mandir}/man8/*
+%{_mandir}/man5/*
+%{_localedir}/ja/LC_MESSAGES/*.mo
+
+%files devel
+%defattr(-,root,root,-)
+%doc COPYING COPYING.LIB
+%{_libdir}/libprocps.so
+%{_libdir}/pkgconfig/libprocps.pc
+%{_includedir}/proc
 
 %changelog
+* Wed May 14 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 3.3.9-1
+- update to forked version of procps 3.3.9
+- add minimum ja.po
+
 * Sat Sep 25 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.8-1
 - update to 3.2.8
 - add patch30 to fix top highlight bug
@@ -164,7 +169,7 @@ rm -f /etc/psdevtab /etc/psdatabase
 * Sun Feb 06 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.5-0vl1
 - new upstream release
 
-* Thu Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.2.0-1vl1
+* Fri Apr 02 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.2.0-1vl1
 - modified for Vine
 - add obsoletes -X11 package
 
@@ -369,7 +374,7 @@ rm -f /etc/psdevtab /etc/psdatabase
 * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
 - automatic rebuild
 
-* Tue Jul 03 2000 Preston Brown <pbrown@redhat.com>
+* Mon Jul 03 2000 Preston Brown <pbrown@redhat.com>
 - larger buffers for reading /proc/stat
 
 * Tue Jun 13 2000 Preston Brown <pbrown@redhat.com>