| 1 | %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5" |
|---|
| 2 | # Compile only atlantikdesigner on KDE4 |
|---|
| 3 | %define donotcompilelist doc kaddressbook-plugins kate kfile-plugins kicker-applets knewsticker-scripts konq-plugins ksig noatun-plugins renamedlgplugins |
|---|
| 4 | %define kde KDE3 |
|---|
| 5 | %else |
|---|
| 6 | %define kde KDE |
|---|
| 7 | %endif |
|---|
| 8 | |
|---|
| 9 | Name: kdeaddons |
|---|
| 10 | Summary: %{kde} additional plugins |
|---|
| 11 | Summary(ja): %{kde} 追加プラグイン |
|---|
| 12 | Version: 3.5.10 |
|---|
| 13 | Release: 4%{?_dist_release} |
|---|
| 14 | |
|---|
| 15 | URL: http://www.kde.org/ |
|---|
| 16 | Group: Applications/Other |
|---|
| 17 | License: GPLv2 |
|---|
| 18 | |
|---|
| 19 | Source: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2 |
|---|
| 20 | |
|---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 22 | BuildRequires: kdelibs3-devel >= %{version} |
|---|
| 23 | BuildRequires: kdegames3-devel >= %{version} |
|---|
| 24 | BuildRequires: libxml2-devel >= 2.6.0 |
|---|
| 25 | BuildRequires: libxslt-devel >= 1.0.18 |
|---|
| 26 | BuildRequires: zlib-devel libjpeg-devel libpng-devel gettext |
|---|
| 27 | %if %{?_dist_release} == "vl4" || %{?_dist_release} == "vl5" |
|---|
| 28 | BuildRequires: kdemultimedia3-devel >= %{version} |
|---|
| 29 | BuildRequires: kdenetwork3-devel >= %{version} |
|---|
| 30 | BuildRequires: kdepim3-devel >= %{version} |
|---|
| 31 | BuildRequires: SDL-devel |
|---|
| 32 | %endif |
|---|
| 33 | Requires: kdelibs3 >= %{version} |
|---|
| 34 | Requires: kdegames3 >= %{version} |
|---|
| 35 | |
|---|
| 36 | %description |
|---|
| 37 | kdeaddons contains additional plugins and scripts for some KDE applications. |
|---|
| 38 | |
|---|
| 39 | %if %{?_dist_release} !="vl4" && %{?_dist_release} !="vl5" |
|---|
| 40 | %package atlantikdesigner |
|---|
| 41 | Summary: Atlantik Designer |
|---|
| 42 | Group: Applications/Games |
|---|
| 43 | Requires: kdelibs3 >= %{version} |
|---|
| 44 | Requires: kdegames3 >= %{version} |
|---|
| 45 | # directory ownership |
|---|
| 46 | Requires: hicolor-icon-theme |
|---|
| 47 | |
|---|
| 48 | Obsoletes: kdeaddons-extras < %{version}-%{release} |
|---|
| 49 | |
|---|
| 50 | %description atlantikdesigner |
|---|
| 51 | This package includes a game board designer for Atlantik. |
|---|
| 52 | %endif |
|---|
| 53 | |
|---|
| 54 | %prep |
|---|
| 55 | %setup -q |
|---|
| 56 | %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5" |
|---|
| 57 | sed -i -e 's/-lkdegames//g' atlantikdesigner/designer/Makefile.in |
|---|
| 58 | %endif |
|---|
| 59 | |
|---|
| 60 | %build |
|---|
| 61 | unset QTDIR || : ; . /etc/profile.d/qt.sh |
|---|
| 62 | %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5" |
|---|
| 63 | export DO_NOT_COMPILE="%{donotcompilelist}" |
|---|
| 64 | %endif |
|---|
| 65 | |
|---|
| 66 | %configure \ |
|---|
| 67 | --with-qt-libraries=$QTDIR/lib \ |
|---|
| 68 | --includedir=%{_includedir}/kde \ |
|---|
| 69 | --disable-rpath \ |
|---|
| 70 | --enable-new-ldflags \ |
|---|
| 71 | --disable-debug --disable-warnings \ |
|---|
| 72 | --disable-dependency-tracking --enable-final |
|---|
| 73 | |
|---|
| 74 | make %{?_smp_mflags} |
|---|
| 75 | |
|---|
| 76 | %install |
|---|
| 77 | rm -rf $RPM_BUILD_ROOT |
|---|
| 78 | |
|---|
| 79 | %if %{?_dist_release} != "vl4" && %{?_dist_release} != "vl5" |
|---|
| 80 | export DO_NOT_COMPILE="%{donotcompilelist}" |
|---|
| 81 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 82 | %else |
|---|
| 83 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 84 | |
|---|
| 85 | # Make symlinks relative |
|---|
| 86 | cd $RPM_BUILD_ROOT/usr/share/doc/HTML/en |
|---|
| 87 | for i in *; do |
|---|
| 88 | if [ -d $i -a -L $i/common ]; then |
|---|
| 89 | rm -f $RPM_BUILD_ROOT/usr/share/doc/HTML/en/$i/common |
|---|
| 90 | ln -sf ../common $RPM_BUILD_ROOT/usr/share/doc/HTML/en/$i |
|---|
| 91 | fi |
|---|
| 92 | done |
|---|
| 93 | %endif |
|---|
| 94 | |
|---|
| 95 | %clean |
|---|
| 96 | rm -rf $RPM_BUILD_ROOT |
|---|
| 97 | |
|---|
| 98 | %if %{?_dist_release} == "vl4" || %{?_dist_release} == "vl5" |
|---|
| 99 | |
|---|
| 100 | %post -p /sbin/ldconfig |
|---|
| 101 | |
|---|
| 102 | %postun -p /sbin/ldconfig |
|---|
| 103 | |
|---|
| 104 | %endif |
|---|
| 105 | |
|---|
| 106 | %if %{?_dist_release} == "vl4" || %{?_dist_release} == "vl5" |
|---|
| 107 | %files |
|---|
| 108 | %defattr(-,root,root) |
|---|
| 109 | %doc README COPYING-DOCS |
|---|
| 110 | %doc %{_datadir}/doc/HTML/en/* |
|---|
| 111 | %{_bindir}/* |
|---|
| 112 | %{_libdir}/kde3/* |
|---|
| 113 | %{_datadir}/applications/* |
|---|
| 114 | %{_datadir}/applnk |
|---|
| 115 | %{_datadir}/apps/* |
|---|
| 116 | %config %{_datadir}/config/* |
|---|
| 117 | %{_datadir}/config.kcfg/* |
|---|
| 118 | %{_datadir}/icons/* |
|---|
| 119 | %{_datadir}/mimelnk/* |
|---|
| 120 | %{_datadir}/services/* |
|---|
| 121 | %else |
|---|
| 122 | %files atlantikdesigner |
|---|
| 123 | %defattr(-,root,root) |
|---|
| 124 | %doc README COPYING-DOCS atlantikdesigner/TODO |
|---|
| 125 | %{_bindir}/atlantikdesigner |
|---|
| 126 | %{_datadir}/apps/atlantikdesigner/ |
|---|
| 127 | %{_datadir}/icons/hicolor/*/*/atlantikdesigner* |
|---|
| 128 | %{_datadir}/applications/kde/atlantikdesigner.desktop |
|---|
| 129 | %endif |
|---|
| 130 | |
|---|
| 131 | %changelog |
|---|
| 132 | * Sun Jul 10 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.5.10-4 |
|---|
| 133 | - rebuild with gcc-5.4.0 |
|---|
| 134 | |
|---|
| 135 | * Sat Feb 26 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-3 |
|---|
| 136 | - changed package name to avoid obsolation by kdeplasma-addons |
|---|
| 137 | |
|---|
| 138 | * Thu Dec 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-2 |
|---|
| 139 | - built for VinePlus/5 |
|---|
| 140 | - updated spec file compatibility |
|---|
| 141 | |
|---|
| 142 | * Sun Mar 21 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.10-1 |
|---|
| 143 | - updated to 3.5.10, only including atlantikdesigner |
|---|
| 144 | - built with new toolchain |
|---|
| 145 | |
|---|
| 146 | * Sun May 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.8-1 |
|---|
| 147 | - applied new versioning policy |
|---|
| 148 | - added BR: kdebase-devel |
|---|
| 149 | - changed Group to Applications/Other |
|---|
| 150 | |
|---|
| 151 | * Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl2 |
|---|
| 152 | - rebuild for VineSeed |
|---|
| 153 | |
|---|
| 154 | * Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl1 |
|---|
| 155 | - new upstream release |
|---|
| 156 | |
|---|
| 157 | * Tue Aug 21 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl3 |
|---|
| 158 | - rebuild with flac-1.2.0 |
|---|
| 159 | |
|---|
| 160 | * Wed Jul 4 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl2 |
|---|
| 161 | - rebuild for VineSeed |
|---|
| 162 | |
|---|
| 163 | * Sat Jun 30 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl1 |
|---|
| 164 | - new upstream release |
|---|
| 165 | |
|---|
| 166 | * Sun Oct 22 2006 NAKAMURA Kenta <kenta@vinelinux.org> 3.5.5-0vl3 |
|---|
| 167 | - added --with-qt-libraries and --enable-libsuffix option |
|---|
| 168 | |
|---|
| 169 | * Tue Oct 3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl2 |
|---|
| 170 | - rebuild for VineSeed |
|---|
| 171 | |
|---|
| 172 | * Tue Oct 3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl1 |
|---|
| 173 | - new upstream release |
|---|
| 174 | |
|---|
| 175 | * Wed Aug 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl2 |
|---|
| 176 | - rebuild for VineSeed |
|---|
| 177 | |
|---|
| 178 | * Wed Aug 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl1 |
|---|
| 179 | - new upstream release |
|---|
| 180 | |
|---|
| 181 | * Fri Jun 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl2 |
|---|
| 182 | - rebuild for VineSeed |
|---|
| 183 | |
|---|
| 184 | * Fri Jun 2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl1 |
|---|
| 185 | - new upstream release |
|---|
| 186 | |
|---|
| 187 | * Thu Mar 23 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl2 |
|---|
| 188 | - rebuild for VineSeed |
|---|
| 189 | |
|---|
| 190 | * Thu Mar 23 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl1 |
|---|
| 191 | - new upstream release |
|---|
| 192 | |
|---|
| 193 | * Thu Dec 8 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl2 |
|---|
| 194 | - rebuild for VineSeed |
|---|
| 195 | |
|---|
| 196 | * Thu Nov 24 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl1 |
|---|
| 197 | - new upstream release |
|---|
| 198 | |
|---|
| 199 | * Tue Nov 15 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.0-0vl0.rc1 |
|---|
| 200 | - initial release for VineSeed |
|---|