Browse Source

python3: new upstream release
xfprint: create -devel sub package

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

Takemikaduchi 11 years ago
parent
commit
6520c161aa
2 changed files with 43 additions and 13 deletions
  1. 12 6
      p/python3/python3-vl.spec
  2. 31 7
      x/xfprint/xfprint-vl.spec

+ 12 - 6
p/python3/python3-vl.spec

@@ -1,20 +1,20 @@
 # if you wanna test, add " --define '_run_test 1' " option to rpmbuild command
 %define run_test %{?_run_test:1}%{!?_run_test:0}
-%define libvers 3.2
-%define binsuffix 3.2
+%define libvers 3.3
+%define binsuffix 3.3
 %define python_lib %{_libdir}/python%{libvers}
 %define config_htmldir /var/www/html/python
 Summary: An interpreted, interactive, object-oriented programming language.
 Summary(ja): オブジェクト指向 Python3 インタプリタ
 Name: python3
-Version: 3.2
+Version: 3.3.0
 Release: 1%{?_dist_release}
 License: PSF
 Group: Development/Languages
 URL: http://www.python.org/download/releases/%{version}
 Source0: http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.bz2
 Source1: http://docs.python.org/py3k/archives/python-%{version}-docs-html.tar.bz2
-Patch1: python-3.2b2-lib64.patch
+Patch1: python-3.3.0-lib64.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: expat-devel
 BuildRequires: db4-devel
@@ -28,6 +28,7 @@ BuildRequires: openssl-devel
 BuildRequires: readline-devel
 BuildRequires: zlib-devel
 BuildRequires: libffi-devel
+BuildRequires: valgrind-devel
 Requires: bzip2
 Requires: gdbm
 Requires: ncurses
@@ -249,8 +250,8 @@ rm -fr $RPM_BUILD_ROOT
 
 %files devel
 %defattr(-,root,root)
-%dir %{_includedir}/python%{libvers}u
-%{_includedir}/python%{libvers}u/*.h
+%dir %{_includedir}/python%{libvers}m
+%{_includedir}/python%{libvers}m/*.h
 %{_includedir}/python%{libvers}
 %{_libdir}/pkgconfig/*.pc
 
@@ -268,6 +269,11 @@ rm -fr $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Oct 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.3.0-1
+- updated python to 3.3.0
+- update Patch1 (python-3.3.0-lib64.patch)
+- add BuildRequires: valgrind-devel
+
 * Sat Apr 16 2011 Shu KONNO <owa@bg.wakwak.com> 3.2-1
 - updated python to 3.2
 - updated python-*-docs-html to 3.2

+ 31 - 7
x/xfprint/xfprint-vl.spec

@@ -1,7 +1,7 @@
 Name: 		xfprint
 Summary: 	Print dialog and printer manager for XFce 4
 Version: 	4.6.1
-Release: 	4%{?_dist_release}
+Release: 	5%{?_dist_release}
 
 Group: 		User Interface/Desktops
 License:	GPLv2+
@@ -15,19 +15,34 @@ BuildRequires: 	glib2-devel >= 2.10.0
 BuildRequires: 	libxfce4util-devel >= 4.6.0
 BuildRequires: 	libxfcegui4-devel >= 4.6.0
 BuildRequires: 	xfconf-devel >= 4.6.0
+
 Requires:	glib2 >= 2.10.0
 Requires:	libxfce4util >= 4.6.0
 Requires:	libxfcegui4 >= 4.6.0
 Requires:	cups
+Requires(postun,posttrans):	desktop-file-utils
 
 %description
 xfprint contains a print dialog and a printer manager for the XFce 4 Desktop Environment
 
+
+%package        devel
+Summary:        Development tools for %{name}
+Summary(ja):    %{name} の開発環境
+Group:          Development/Libraries
+Requires:       %{name} = %{version}-%{release}
+Requires:       pkgconfig
+
+%description    devel
+Header files and libraries for building a extension library for the
+%{name}.
+
+
 %prep
 %setup -q
 
 %build
-%configure
+%configure --disable-static
 make LIBS="-lX11"
 
 %install
@@ -48,29 +63,38 @@ touch --no-create %{_datadir}/icons/hicolor
 
 %posttrans 
 gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+update-desktop-database -q &> /dev/null || :
 
 %postun
 /sbin/ldconfig
 if [ $1 -eq 0 ] ; then
     touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
     gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+    update-desktop-database -q &> /dev/null || :
 fi
 
 %files -f %{name}.lang
-%defattr(-,root,root)
+%defattr(-,root,root,-)
 %doc README ChangeLog NEWS COPYING AUTHORS TODO
 %{_bindir}/*
-%{_includedir}/xfce4/libxfprint
-%{_libdir}/libxfprint*
+%{_libdir}/libxfprint.so.*
 %{_libdir}/xfce4
-%{_libdir}/pkgconfig/*.pc
 %{_datadir}/applications/*.desktop
-%{_datadir}/gtk-doc/html/libxfprint
 %{_datadir}/icons/hicolor/*/devices/*
 %{_datadir}/xfce4/doc
 
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/xfce4/libxfprint
+%{_libdir}/libxfprint.so
+%{_libdir}/pkgconfig/%{name}-1.0.pc
+%{_datadir}/gtk-doc/html/libxfprint
+
 
 %changelog
+* Wed Oct 24 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.6.1-5
+- create %{name}-devel sub package
+
 * Thu Jun 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.6.1-4
 - rebuild with xfce4-4.10.0