synaptic-vl.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. Name: synaptic
  2. Version: 0.57.2
  3. Release: 13%{?_dist_release}
  4. Summary: GTK based graphical front-end for APT
  5. Summary(ja): GTK ベースの APT グラフィカルフロントエンド
  6. Group: Applications/Administration
  7. License: GPL
  8. Source0: %{name}-%{version}.tar.gz
  9. Source10: synaptic-0.57.2-ja.po
  10. Source20: synaptic-dummy-grouplist.txt
  11. Source30: package-supported.png
  12. Patch1: synaptic-0.57.2-gcc41.patch
  13. Patch2: synaptic-0.57.2-repomd-1.patch
  14. Patch3: synaptic-0.57.2-showprog.patch
  15. Patch4: synaptic-0.57.2-progressapi-hack.patch
  16. Patch5: synaptic-0.57.2-gcc43.patch
  17. Patch6: synaptic-0.57.2-gcc44.patch
  18. Patch10: synaptic-0.56-desktopfile.patch
  19. Patch11: synaptic-0.57.2-no-utf8-help.patch
  20. Patch13: synaptic-0.57.2-apt-cdrom.patch
  21. Patch14: synaptic-0.57.2-prefer-normal-upgrade.patch
  22. Patch15: synaptic-0.57.2-default-size.patch
  23. Patch16: synaptic-0.57.2-firefox.patch
  24. Patch20: synaptic-dummy-grouplist.patch
  25. Patch21: synaptic-0.57.2-convert-eucjp-to-utf8.patch
  26. Patch22: synaptic-0.57.2-fix-memory-corruption.patch
  27. Patch23: synaptic-0.57.2-fix-assertion-failure.patch
  28. Patch24: synaptic-0.57.2-no-skip-taskbar.patch
  29. Patch25: synaptic-0.57.2-add-default-filters.patch
  30. Patch26: synaptic-0.57.2-fix-repository-updown.patch
  31. Patch27: synaptic-0.57.2-fix-crash-on-font-change.patch
  32. Patch28: synaptic-0.57.2-fix-reinstall.patch
  33. Requires: apt >= 0.5.15lorg3.93-0vl1
  34. Requires: usermode >= 1.69
  35. BuildRequires: bzip2-devel, zlib-devel
  36. BuildRequires: rpm-devel >= 4.8
  37. BuildRequires: apt-devel >= 0.5.15lorg3.95
  38. BuildRequires: gtk2-devel >= 2.4.0
  39. BuildRequires: libglade2-devel >= 2.0.1
  40. BuildRequires: vte-devel >= 0.11.10
  41. BuildRequires: xmlto
  42. BuildRequires: scrollkeeper
  43. BuildRequires: perl-XML-Parser
  44. BuildRequires: desktop-file-utils
  45. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  46. Vendor: Project Vine
  47. Distribution: Vine Linux
  48. Packager: daisuke
  49. %description
  50. Synaptic is a graphical front-end for APT (Advanced Package Tool). This
  51. version is written with the Gtk toolkit.
  52. Instead of using trees to display packages, Synaptic is heavily based on a
  53. powerful package filtering system. That greatly simplifies the interface
  54. while giving a lot more flexibility to browse through very long package
  55. lists.
  56. %description -l ja
  57. Synaptic は APT(Advanced Package Tool) の Gtk+ ベースのグラフィカル
  58. フロントエンドです。Synaptic はパッケージを単純にツリー表示するのでは
  59. なく、強力なパッケージフィルタリングシステムを用いてパッケージを表示
  60. しています。
  61. %prep
  62. %setup -q
  63. %patch1 -p1
  64. %patch2 -p1
  65. %patch3 -p1
  66. %patch4 -p1
  67. %patch5 -p1
  68. %patch6 -p1
  69. %patch10 -p1
  70. %patch11 -p1
  71. #%patch12 -p1
  72. %patch13 -p1
  73. %patch14 -p1
  74. %patch15 -p1
  75. %patch16 -p1
  76. %patch20 -p1
  77. %patch21 -p1
  78. %patch22 -p1
  79. %patch23 -p1
  80. %patch24 -p1
  81. %patch25 -p1
  82. %patch26 -p1
  83. %patch27 -p1
  84. %patch28 -p1
  85. cp -f po/ja.po po/ja.po.orig
  86. cp -f %{SOURCE10} po/ja.po
  87. cp -f %{SOURCE20} .
  88. cp -f %{SOURCE30} pixmaps/
  89. %build
  90. %configure --with-pkg-hold --with-vte --enable-scripts --disable-dependency-tracking
  91. make -C po update-po
  92. make %{?_smp_mflags}
  93. %install
  94. rm -fr %{buildroot}
  95. %makeinstall
  96. # usermode setting
  97. mkdir -p %{buildroot}%{_bindir}
  98. mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
  99. mkdir -p %{buildroot}%{_sysconfdir}/pam.d
  100. ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/synaptic
  101. cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/synaptic
  102. USER=root
  103. PROGRAM=%{_sbindir}/synaptic
  104. SESSION=true
  105. FALLBACK=false
  106. EOF
  107. cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/synaptic
  108. #%PAM-1.0
  109. auth sufficient pam_rootok.so
  110. auth sufficient pam_timestamp.so
  111. auth include system-auth
  112. session required pam_permit.so
  113. session optional pam_xauth.so
  114. session optional pam_timestamp.so
  115. account required pam_permit.so
  116. EOF
  117. desktop-file-install --vendor=synaptic \
  118. --delete-original \
  119. --dir %{buildroot}%{_datadir}/applications \
  120. --remove-key MultipleArgs \
  121. --add-category Application \
  122. --add-category System \
  123. --add-category Settings \
  124. %{buildroot}%{_datadir}/applications/%{name}.desktop
  125. # install japanese manpage
  126. mkdir -p %{buildroot}%{_mandir}/ja/man8/
  127. install man/synaptic.ja.8 %{buildroot}%{_mandir}/ja/man8/synaptic.8
  128. # fixed uri of manual.
  129. sed -i 's@file://usr@file:///usr@' %{buildroot}%{_datadir}/omf/synaptic/*.omf
  130. # remove uninstalled files
  131. rm -rf %{buildroot}/%{_localstatedir}/scrollkeeper
  132. rm -rf %{buildroot}/%{_sysconfdir}/X11
  133. rm -rf %{buildroot}/%{_datadir}/applications/%{name}-kde.desktop
  134. %clean
  135. rm -rf %{buildroot}
  136. %files
  137. %defattr(-,root,root)
  138. %doc COPYING* README* TODO
  139. %attr(755,root,root) %{_sbindir}/synaptic
  140. %attr(755,root,root) %{_bindir}/synaptic
  141. %{_sysconfdir}/security/console.apps/synaptic
  142. %{_sysconfdir}/pam.d/synaptic
  143. %{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
  144. %{_datadir}/%{name}
  145. %{_datadir}/applications/%{name}.desktop
  146. %{_datadir}/pixmaps/%{name}.png
  147. %{_datadir}/omf/synaptic/*.omf
  148. %{_datadir}/gnome/help/synaptic
  149. %{_mandir}/man8/*
  150. %{_mandir}/ja/man8/*
  151. %changelog
  152. * Wed Apr 13 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.57.2-13
  153. - fixed uri of manual.
  154. * Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.57.2-12
  155. - add Patch28: fix reinstall error (<BTS:VineLinux:356>)
  156. - add BuildRequires: desktop-file-utils
  157. * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.57.2-11
  158. - rebuilt with rpm-4.8.0-3 (on ppc)
  159. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-10
  160. - rebuild with rpm-4.8.0
  161. * Fri Aug 21 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.57.2-9
  162. - add %Patch26: fix segfault when changing repository order
  163. <BTS:VineLinux:0645>
  164. - add %Patch27: fix crash when changing fonts <BTS:VineLinux:0751>
  165. * Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.57.2-8
  166. - add %Patch25: add custom filter for multiple verision package
  167. - update Source10: add translation in ja.po
  168. - update Patch24: not to skip multiple version warning dialog
  169. * Sat Jul 11 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.57.2-7
  170. - add Patch24: don't skip taskbar when main window is hidden
  171. * Mon Jun 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-6
  172. - add Patch23: fix assertion failure on gtk_widget_hide
  173. * Sun Jun 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-5
  174. - add Patch21: fix memory corruption bug.
  175. - add Patch22: convert EUC text to UTF-8
  176. * Mon May 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-4
  177. - update ja.po
  178. - don't apply patch12
  179. * Tue Jul 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-3
  180. - update pam.d/synaptic for pam-1.0
  181. * Fri May 16 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.57.2-2
  182. - add BuildRequires perl-XML-Parser
  183. * Sat May 10 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.57.2-1
  184. - apply new versioning policy
  185. - rebuild with apt-0.5.15lorg3.94a
  186. * Wed Nov 21 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl18
  187. - add "Applications/Accessories" and "Restricted Software" to grouplist
  188. - update ja.po
  189. * Fri Oct 19 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl17
  190. - add Patch2,3,4 to support apt-0.5.15lorg3.93
  191. - renumber Patch16 to Patch1
  192. - add Patch16 to use firefox instead of mozilla
  193. * Sun Oct 14 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl16
  194. - rebuild with apt-0.5.15lorg3.93
  195. * Sun Oct 14 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl15
  196. - rebuild with rpm-4.4.2.2
  197. * Thu May 10 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl14
  198. - rebuild with new environment
  199. - add patch16 to build with gcc4
  200. - add SOURCE30 to use vine icon for package-supported.png
  201. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl13
  202. - rebuild with vte-0.16
  203. * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl12
  204. - add Patch15 to modify default windows size and treeview font size
  205. * Sun Nov 05 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl11
  206. - add Patch14 to change default upgrade method to normal upgrade
  207. instead of dist-upgrade.
  208. * Thu Nov 02 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.57.2-0vl10
  209. - update required-version of apt (>= 0.5.15lorg3.2-0vl7)
  210. - comes from libapt-pkg(MountCdrom) API change
  211. * Fri Oct 27 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl9
  212. - add Patch13 for libapt-pkg(MountCdrom) API change.
  213. * Tue Sep 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl8
  214. - add Patch12 to fix broken summary and descriptions on UTF-8 locale.
  215. - convert rpm summaries and descriptions to UTF-8 from EUC-JP.
  216. * Wed Aug 23 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.57.2-0vl7
  217. - add BuildRequires: scrollkeeper
  218. * Sun May 28 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.57.2-0vl6
  219. - rebuilt with apt-0.5.15org3.1
  220. * Sun May 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl5
  221. - add Patch11 to use locale to show help messages instead of utf-8.
  222. * Tue Apr 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl4
  223. - rebuild with new apt
  224. - change Group to Applications/Administration
  225. * Sat Feb 11 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.57.2-0vl3
  226. - update ja.po from [VineSeed:10523] etc...
  227. * Sat Feb 11 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.57.2-0vl2
  228. - update ja.po
  229. * Fri Dec 16 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.57.2-0vl1
  230. - new upstream release
  231. - update ja.po
  232. - build with rpm-4.4
  233. * Sun May 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.56-0vl1
  234. - new upstream release
  235. * Thu Apr 07 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 0.56-0vl0
  236. - new upstream version (0.56beta)
  237. * Thu Nov 04 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.55.1-0vl1
  238. - new upstream release
  239. * Tue Nov 02 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.55-0vl1
  240. - new upstream release
  241. - update ja.po
  242. * Mon Nov 01 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.53.4-0vl1
  243. - new upstream release
  244. - update ja.po
  245. * Sun Aug 15 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.53-0vl1
  246. - new upstream release
  247. - update ja.po
  248. * Tue Jul 06 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.52-0vl1
  249. - new upstream release
  250. * Fri Jun 25 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.51-0vl3
  251. - do not run automake/autoconf in %%build
  252. * Fri Jun 25 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.51-0vl2
  253. - add japanese man page.
  254. * Wed Jun 23 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.51-0vl1
  255. - new upstream release
  256. * Tue Jun 22 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.50-0vl2
  257. - more update ja.po
  258. * Tue Jun 22 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.50-0vl1
  259. - new upstream release
  260. - update ja.po (merged cvs head)
  261. - add patch10 to fix 'filter' on non-UTF8 locale (merged in cvs head)
  262. * Sat Apr 10 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.48.2-0vl1
  263. - new upstream release
  264. - remove obsolete ja.po that is included in upstream
  265. * Sat Mar 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.48.1-0vl1
  266. - new upstream release
  267. - update ja.po
  268. - add BuildRequires: xmlto to build manuals.
  269. * Sat Feb 28 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.48-0vl0.2
  270. - new upstream test release
  271. - fix desktopfile to use usermode instead of gksu.
  272. * Thu Dec 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.47-0vl1
  273. - new upstream release
  274. - Fixed many i18n issues (thanks to Ales Kapica and Jean-Michel Poure)
  275. - New Czech, Arabic translation
  276. - Updated Polish,Spanish,French,Japanese,Chinese,German translation
  277. - Minor documentation updates
  278. - Reworked the context menu for packages
  279. - Some ui improvements in the common tab
  280. - Use units according to the SI spec now
  281. - New summary window
  282. - A lot of minor bug and typo fixes
  283. * Tue Nov 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.47-0vl0
  284. - new upstream pre release
  285. * Tue Nov 18 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.46-0vl1
  286. - new upstream release
  287. - font selection added for default interface font and terminal
  288. - better support for translated descriptions (thanks johnnybgate)
  289. - dist-upgrade is gone from the menu, the user is asked what kind of
  290. upgrade he wants now
  291. - toolbar has a new style (text beside buttons) now
  292. - real docbook help added (yeah! thanks SEBASTIAN)
  293. - "hold" button gone from the gui, moved to menü
  294. - sections can translated and a more descriptive description is used
  295. - rpm-src-dir support added (thanks to Panu Matilainen)
  296. * Sun Oct 19 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.45-0vl1
  297. - fixed kanji code in spec file..
  298. - new upstream release
  299. - proxy can be configured with the gui now
  300. - new preferences dialog layout (thanks Sebastian Heinlein)
  301. - new filter dialog layout (thanks Sebastian Heinlein)
  302. - when adding filter, they are called "New Filter 1", "New Filter 2" etc
  303. - added "search lack", so that the interactive search does not start
  304. immediately
  305. - new quit dialog
  306. - speedup for the pattern filters
  307. - small ui-enhancements in the filter dialog
  308. - basic support for distribution selection (if you have more than one
  309. distro in your sources.list, you can choose which to use by default)
  310. - new about dialog (thanks Sebastian)
  311. - support to choose between different versions of a given package
  312. - updated japanese, chinese, polish, spanish, russian, frensh, german
  313. and italian translations
  314. * Wed Sep 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.44-0vl1
  315. - new upstream release
  316. - two alternative main layouts can be choosen now
  317. - "clean cache now" implemented" in preferences window
  318. - the search entry in the main window is interactive again
  319. - much improved preferences dialog (thanks to Sebastian Heinlein)
  320. - new italian, spanish, russian, chinese translation
  321. - new belarussian translation
  322. - improved main window design (thanks Sebastian Heinlein)
  323. - added "rpm-dir" repository support (thanks Panu)
  324. - prepeared a lot of strings for better i18n (thanks Jean-Michel POURE)
  325. * Wed Sep 17 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.44-0vl0.pre3
  326. - new upstream snapshot release
  327. * Sun Aug 30 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.43.1-0vl1
  328. - new upstream release
  329. - the descriptionParser for rpm has changed
  330. (the actuall parser is configurable now)
  331. - new find and changes dialog layout, more HIG compliant
  332. - more bugfixes in the PkgTreeView and the new sorting code
  333. * Tue Aug 12 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.42-0vl1
  334. - new upstream release
  335. - download percentage is now always calculated correctly
  336. - save selection on "pin", "update" and "proceed" now
  337. - some bugs fixed in the new sortable tree/list
  338. - the order of the columns in the treeview is configurable now
  339. - updated german/spanish/japanese/russian translation
  340. - [debian only] debian package tags support
  341. - sortable installed size column added
  342. - "Information" tab now scrollable
  343. * Wed Jul 30 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.40-0vl1
  344. - new upstream release
  345. * Tue Jul 8 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.39-0vl2
  346. - remove BuildRequires: libzvt
  347. * Sat Jul 5 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.39-0vl1
  348. - new upstream release
  349. - update ja.po
  350. * Sat Jun 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.38-0vl2
  351. - update ja.po
  352. * Sat Jun 21 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.38-0vl1
  353. - new upstream release
  354. * Thu Jun 19 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.37-0vl1
  355. - new upstream release
  356. * Fri Apr 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.36.1-0vl1
  357. - new upstream release
  358. * Thu Apr 17 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.36-0vl1
  359. - new upstream release 0.36
  360. - fixed usermode configuration file.
  361. * Tue Apr 15 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.35.1-0vl2
  362. - rebuild with apt-0.5.5.cnc.5-0vl1
  363. * Wed Apr 2 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.35.1-0vl1
  364. - new upstream release 0.35.1
  365. - drop obsolete patch0 which included in upstream.
  366. - add modified synaptic.desktop entry.
  367. * Mon Mar 31 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.35-0vl2
  368. - add patch0 to fix compilation failure on apt-rpm.
  369. - add ja.po and patch10.
  370. * Sun Mar 30 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.35-0vl1
  371. - new upstream release
  372. * Fri Mar 28 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 0.32-0vl1
  373. - initial release.