[12555] | 1 | %global page_id 23820 |
---|
| 2 | %global src_suffix 2021-01-15_e86c870879 |
---|
[1987] | 3 | |
---|
[12555] | 4 | Name: inkscape |
---|
| 5 | Summary: A Vector Drawing Application |
---|
| 6 | Summary(ja): ベクター描画アプリケーション |
---|
| 7 | Version: 1.0.2 |
---|
[12563] | 8 | Release: 2%{?_dist_release} |
---|
[12555] | 9 | Group: graphics |
---|
| 10 | Vendor: Project Vine |
---|
| 11 | Distribution: Vine Linux |
---|
[521] | 12 | |
---|
[12555] | 13 | License: GPLv2+ |
---|
| 14 | URL: https://inkscape.org/ |
---|
| 15 | Source0: https://inkscape.org/ja/gallery/item/%{page_id}/inkscape-%{version}.tar.xz |
---|
[941] | 16 | |
---|
[11698] | 17 | # # to fix compile error with poppler>=0.58 |
---|
| 18 | # Patch1000: poppler-0.58.x.patch |
---|
| 19 | # Patch1001: poppler-0.58.x-autotools.patch |
---|
[11313] | 20 | |
---|
[12271] | 21 | # # to fix compile error with poppler>=0.76.0 |
---|
| 22 | # https://gitlab.com/inkscape/inkscape/issues/220 |
---|
[12555] | 23 | #Patch1002: poppler-0.76.x.patch |
---|
[11313] | 24 | |
---|
[12129] | 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 26 | |
---|
[12555] | 27 | BuildRequires: cairo-devel |
---|
| 28 | BuildRequires: cmake |
---|
| 29 | BuildRequires: dos2unix |
---|
| 30 | BuildRequires: dbus-glib-devel |
---|
| 31 | BuildRequires: double-conversion-devel |
---|
| 32 | BuildRequires: gc-devel >= 6.4 |
---|
| 33 | BuildRequires: gdl-devel |
---|
| 34 | BuildRequires: gsl-devel |
---|
| 35 | BuildRequires: gtkmm3-devel |
---|
| 36 | BuildRequires: ImageMagick-c++-devel |
---|
| 37 | BuildRequires: lcms2-devel |
---|
| 38 | BuildRequires: libboost-devel |
---|
| 39 | BuildRequires: libexif-devel |
---|
| 40 | BuildRequires: libjpeg-turbo-devel |
---|
| 41 | BuildRequires: libpng-devel >= 1.2.0 |
---|
| 42 | BuildRequires: libsigc++-devel >= 2.0.12 |
---|
| 43 | BuildRequires: libsoup-devel |
---|
[521] | 44 | BuildRequires: libxml2-devel >= 2.6.11 |
---|
| 45 | BuildRequires: libxslt-devel >= 1.0.15 |
---|
[8721] | 46 | BuildRequires: libwpg-devel |
---|
[12555] | 47 | BuildRequires: pango-devel |
---|
[12129] | 48 | BuildRequires: perl-XML-Parser |
---|
[2041] | 49 | BuildRequires: poppler-devel >= 0.14.2 |
---|
| 50 | BuildRequires: popt-devel |
---|
[12555] | 51 | BuildRequires: potrace-devel |
---|
| 52 | BuildRequires: python3-devel |
---|
| 53 | BuildRequires: python3-setuptools |
---|
[12129] | 54 | |
---|
[12555] | 55 | Requires: python3 |
---|
| 56 | Requires: python3-lxml |
---|
| 57 | Requires: python3-numpy |
---|
| 58 | #Requires: python3-scour |
---|
[521] | 59 | |
---|
| 60 | %description |
---|
| 61 | Inkscape is a SVG based generic vector-drawing program for |
---|
| 62 | Linux/Unix/Windows/Mac. |
---|
| 63 | |
---|
| 64 | %description -l ja |
---|
| 65 | Inkscape は SVG ベースの汎用ベクトル描画プログラムです。 |
---|
| 66 | Linux/Unix/Windows/Mac で動作します。 |
---|
| 67 | |
---|
[12555] | 68 | |
---|
| 69 | %debug_package |
---|
| 70 | |
---|
| 71 | |
---|
[521] | 72 | %prep |
---|
[12555] | 73 | %setup -q -n %{name}-%{version}_%{src_suffix} |
---|
[521] | 74 | |
---|
[11698] | 75 | # %patch1000 -p1 |
---|
| 76 | # %patch1001 -p1 |
---|
[12555] | 77 | #patch1002 -p1 -b .poppler0.76.x |
---|
[11313] | 78 | |
---|
[9259] | 79 | # https://bugs.launchpad.net/inkscape/+bug/314381 |
---|
| 80 | # A couple of files have executable bits set, |
---|
| 81 | # despite not being executable |
---|
| 82 | find . -name '*.cpp' | xargs chmod -x |
---|
| 83 | find . -name '*.h' | xargs chmod -x |
---|
| 84 | find share/extensions -name '*.py' | xargs chmod -x |
---|
| 85 | |
---|
| 86 | # Fix end of line encodings |
---|
| 87 | dos2unix -k -q share/extensions/*.py |
---|
| 88 | |
---|
[12555] | 89 | |
---|
[521] | 90 | %build |
---|
[12555] | 91 | cmake \ |
---|
| 92 | -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \ |
---|
| 93 | -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \ |
---|
| 94 | -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \ |
---|
| 95 | -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ |
---|
| 96 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 97 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \ |
---|
| 98 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 99 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 100 | -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \ |
---|
| 101 | %if "%{_lib}" == "lib64" |
---|
| 102 | -DLIB_SUFFIX=64 \ |
---|
| 103 | %endif |
---|
| 104 | -DBUILD_SHARED_LIBS:BOOL=OFF . |
---|
[11313] | 105 | |
---|
[521] | 106 | make %{?_smp_mflags} |
---|
| 107 | |
---|
[12555] | 108 | |
---|
[521] | 109 | %install |
---|
| 110 | rm -rf %{buildroot} |
---|
[1987] | 111 | |
---|
[12555] | 112 | make install DESTDIR=%{buildroot} |
---|
| 113 | find %{buildroot} -type f -name 'lib*.a' -delete |
---|
[521] | 114 | |
---|
[12555] | 115 | rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache |
---|
[1987] | 116 | |
---|
[12555] | 117 | %find_lang %{name} --with-man |
---|
| 118 | %find_lang inkview --with-man |
---|
[521] | 119 | |
---|
[12555] | 120 | rm -rf $RPM_BUILD_ROOT%{_datadir}/inkscape/doc |
---|
| 121 | rm -f $RPM_BUILD_ROOT%{_datadir}/doc/inkscape/copyright |
---|
| 122 | |
---|
| 123 | |
---|
[521] | 124 | %clean |
---|
| 125 | rm -rf %{buildroot} |
---|
| 126 | |
---|
[12555] | 127 | |
---|
[1987] | 128 | %post |
---|
| 129 | /sbin/ldconfig |
---|
| 130 | touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : |
---|
| 131 | |
---|
| 132 | %postun |
---|
| 133 | if [ $1 -eq 0 ] ; then |
---|
| 134 | update-desktop-database -q &> /dev/null |
---|
| 135 | touch --no-create %{_iconsdir}/icons/hicolor &> /dev/null |
---|
| 136 | gtk-update-icon-cache %{_iconsdir}/icons/hicolor &> /dev/null || : |
---|
| 137 | fi |
---|
| 138 | |
---|
| 139 | %posttrans |
---|
| 140 | update-desktop-database -q &> /dev/null |
---|
| 141 | gtk-update-icon-cache %{_iconsdir}/icons/hicolor &> /dev/null || : |
---|
| 142 | |
---|
| 143 | |
---|
[12555] | 144 | %files -f %{name}.lang -f inkview.lang |
---|
[521] | 145 | %defattr(-, root, root) |
---|
[12555] | 146 | %license COPYING |
---|
| 147 | %doc AUTHORS NEWS* README* |
---|
[521] | 148 | %{_bindir}/inkscape |
---|
| 149 | %{_bindir}/inkview |
---|
| 150 | %{_datadir}/inkscape |
---|
[12555] | 151 | %{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml |
---|
| 152 | %{_datadir}/applications/org.inkscape.Inkscape.desktop |
---|
| 153 | %{_datadir}/icons/hicolor/*/*/*.png |
---|
[521] | 154 | %{_mandir}/man1/* |
---|
[12555] | 155 | %dir %{_datadir}/bash-completion |
---|
| 156 | %dir %{_datadir}/bash-completion/completions |
---|
| 157 | %{_datadir}/bash-completion/completions/inkscape |
---|
[521] | 158 | |
---|
[12129] | 159 | |
---|
[521] | 160 | %changelog |
---|
[12563] | 161 | * Wed Mar 03 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.2-2 |
---|
| 162 | - rebuilt with poppler-21.03.0. |
---|
| 163 | |
---|
[12555] | 164 | * Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.2-1 |
---|
| 165 | - new upstream release. |
---|
| 166 | |
---|
[12291] | 167 | * Sun Oct 27 2019 Toshiaki Ara <ara_t@384.jp> 0.92.4-3 |
---|
| 168 | - rebuild with OpenEXR-libs-2.4.0 (required by ImageMagick) |
---|
| 169 | |
---|
[12271] | 170 | * Mon Oct 14 2019 Toshiaki Ara <ara_t@384.jp> 0.92.4-2 |
---|
| 171 | - rebuild with poppler-0.81.0 and gsl-2.6 |
---|
| 172 | - add Patch1002 for poppler >= 0.76.0 |
---|
| 173 | |
---|
| 174 | * Mon May 20 2019 Toshiaki Ara <ara_t@384.jp> 0.92.4-1 |
---|
[12129] | 175 | - update to 0.92.4 |
---|
| 176 | - drop unrecognized options: --with-python, --enable-lcms2 |
---|
| 177 | |
---|
[11698] | 178 | * Sun Jun 03 2018 Toshiaki Ara <ara_t@384.jp> 0.92.3-1 |
---|
| 179 | - updated to 0.92.3 |
---|
| 180 | - drop Patch1000,1001 |
---|
| 181 | |
---|
[11313] | 182 | * Wed Jan 03 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.92.2-1 |
---|
[11698] | 183 | - updated to 0.92.2 |
---|
[11313] | 184 | |
---|
[10413] | 185 | * Tue Jun 28 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.91-3 |
---|
| 186 | - rebuild with gcc-5.4.0 |
---|
| 187 | |
---|
[10266] | 188 | * Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.91-2 |
---|
| 189 | - rebuild with poppler-0.43.0 |
---|
| 190 | |
---|
[9791] | 191 | * Tue Nov 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.91-1 |
---|
| 192 | - update to 0.91 |
---|
| 193 | - remove old patches |
---|
| 194 | - add BuildRequires: dbus-glib-devel, libexif-devel, libjpeg-turbo-devel |
---|
| 195 | |
---|
[9508] | 196 | * Tue Apr 14 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.5-4 |
---|
| 197 | - rebuild with ImageMagick-6.9.1.1 |
---|
| 198 | |
---|
[9259] | 199 | * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.48.5-3 |
---|
| 200 | - rebuilt with libwpd 0.3.0 |
---|
| 201 | - added Patch14 to build with libwpd 0.3.0 |
---|
| 202 | |
---|
[8771] | 203 | * Tue Jul 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.5-2 |
---|
| 204 | - rebuild with poppler-0.26.2 |
---|
| 205 | |
---|
[8721] | 206 | * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.5-1 |
---|
| 207 | - new upstream release |
---|
| 208 | - add BuildRequires: libwpg-devel |
---|
| 209 | - remove Patch0 (inkscape-0.48.4-freetype-2.5.x.patch) |
---|
| 210 | |
---|
[8406] | 211 | * Sat May 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-5 |
---|
| 212 | - rebuild with poppler-0.24.5 |
---|
| 213 | - add Patch0 (inkscape-0.48.4-freetype-2.5.x.patch) |
---|
| 214 | |
---|
[8011] | 215 | * Sun Nov 10 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-4 |
---|
| 216 | - rebuild with ImageMagick-6.8.7.5 |
---|
| 217 | |
---|
[7938] | 218 | * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-3 |
---|
| 219 | - rebuild with poppler-0.24.2 |
---|
| 220 | |
---|
[7766] | 221 | * Wed Aug 14 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-2 |
---|
| 222 | - rebuild with ImageMagick-6.8.6.8 |
---|
| 223 | |
---|
[7756] | 224 | * Mon Jul 15 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.4-1 |
---|
| 225 | - new upstream release |
---|
| 226 | - remove Patch0 (inkscape-0.48.2-poppler_020.patch) |
---|
| 227 | |
---|
[6890] | 228 | * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.3.1-2 |
---|
| 229 | - rebuild with poppler-0.20.4 |
---|
| 230 | - add Patch0 (inkscape-0.48.2-poppler_020.patch) from fedora |
---|
| 231 | - change BuildRequires: lcms2-devel instead of lcms-devel |
---|
| 232 | |
---|
[6011] | 233 | * Thu Apr 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.3.1-1 |
---|
| 234 | - new upstream release |
---|
| 235 | |
---|
[5879] | 236 | * Sat Mar 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.2-2 |
---|
| 237 | - rebuild with ImageMagick-6.7.5.10 |
---|
| 238 | |
---|
[5568] | 239 | * Sat Feb 4 2012 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 0.48.2-1 |
---|
| 240 | - new upstream release |
---|
| 241 | |
---|
[3965] | 242 | * Sat May 28 2011 TANAKA hiroaki <mosaicist@par.odn.ne.jp> |
---|
| 243 | - add Requires: python-lxml,perl-XML-RegExp,perl-XML-DOM |
---|
| 244 | |
---|
[2998] | 245 | * Sat Mar 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.48.1-1 |
---|
| 246 | - new upstream release |
---|
| 247 | - built with poppler-0.16.3 |
---|
| 248 | |
---|
[2041] | 249 | * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.48.0-2 |
---|
| 250 | - rebuild with poppler-0.14.2 |
---|
| 251 | - add BuildRequires: popt-devel, ImageMagick-c++-devel |
---|
| 252 | |
---|
[1987] | 253 | * Sun Oct 3 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.48-1 |
---|
| 254 | - new upstream release |
---|
| 255 | - rebuilt with ImageMagick-6.6.4.8 |
---|
| 256 | |
---|
[941] | 257 | * Thu Apr 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.47-3 |
---|
| 258 | - added Patch0 for building with poppler-0.12.2+ |
---|
| 259 | - rebuilt with new toolchain and ImageMagick-6.6.1.5 |
---|
| 260 | - removed BR: libgnomeprint-devel, libgnomeprintui-devel |
---|
| 261 | |
---|
[521] | 262 | * Fri Nov 27 2009 Shu KONNO <owa@bg.wakwak.com> 0.47-2 |
---|
| 263 | - rebuild with poppler-0.12.1 |
---|
| 264 | |
---|
| 265 | * Mon Nov 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.47-1 |
---|
| 266 | - new upstream release |
---|
| 267 | - add BR: libboost-devel |
---|
| 268 | |
---|
| 269 | * Thu Sep 03 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.47-0.1.pre2 |
---|
| 270 | - update to 0.47pre2 |
---|
| 271 | - drop obsolete patches |
---|
| 272 | - add BR: gsl-devel |
---|
| 273 | |
---|
| 274 | * Sat Dec 13 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.46-4 |
---|
| 275 | - rebuild with poppler-0.10.2 |
---|
| 276 | |
---|
| 277 | * Sun Oct 05 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.46-3 |
---|
| 278 | - add Patch[1-6] |
---|
| 279 | |
---|
| 280 | * Sat Aug 23 2008 Shu KONNO <owa@bg.wakwak.com> 0.46-2vl5 |
---|
| 281 | - added inkscape-0.46-poppler-0.8.3.patch |
---|
| 282 | - spec in utf-8 |
---|
| 283 | - added option %%{?_smp_mflags} at make |
---|
| 284 | |
---|
| 285 | * Sun Apr 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.46-1vl5 |
---|
| 286 | - new upstream release |
---|
| 287 | |
---|
| 288 | * Fri May 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.45.1-0vl2 |
---|
| 289 | - rebuild with new environment/toolchain |
---|
| 290 | |
---|
| 291 | * Mon Apr 30 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.45.1-0vl1 |
---|
| 292 | - new upstream release |
---|
| 293 | |
---|
| 294 | * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 0.45-0vl2 |
---|
| 295 | - add BuildRequires: lcms-devel >= 1.13, libxslt-devel >= 1.0.15 |
---|
| 296 | - update required version of gtk2-devel |
---|
| 297 | |
---|
| 298 | * Sat Feb 10 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.45-0vl1 |
---|
| 299 | - new upstream release |
---|
| 300 | |
---|
| 301 | * Sun Sep 24 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.44.1-0vl1 |
---|
| 302 | - new upstream release |
---|
| 303 | |
---|
| 304 | * Wed Nov 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.43-0vl1 |
---|
| 305 | - new upstream release |
---|
| 306 | |
---|
| 307 | * Tue Aug 23 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42.2-0vl1 |
---|
| 308 | - new upstream release |
---|
| 309 | |
---|
| 310 | * Mon Aug 22 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42.1-0vl1 |
---|
| 311 | - new upstream release |
---|
| 312 | |
---|
| 313 | * Thu Aug 18 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.42-0vl1 |
---|
| 314 | - new upstream release |
---|
| 315 | |
---|
| 316 | * Tue Nov 16 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.40-0vl1 |
---|
| 317 | - new upstream release |
---|
| 318 | - add Japanese summary and description |
---|
| 319 | - fixed dependancy of libsigc++12 to libsigc++ >= 2.0 |
---|
| 320 | |
---|
| 321 | * Tue Nov 16 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.39-1vl2 |
---|
| 322 | - fixed dependancy of libsigc++ to libsigc++12 |
---|
| 323 | - fixed %files section |
---|
| 324 | |
---|
| 325 | * Wed Aug 25 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.39-1vl1 |
---|
| 326 | - rebuild for Vine Linux |
---|
| 327 | - s/Copyright/License/ |
---|
| 328 | - added Requires and BuildRequires |
---|
| 329 | |
---|
| 330 | * Sat Jul 17 2004 Bryce W. Harrington <bryce@bryceharrington.com> |
---|
| 331 | - Removing _libdir and TODO, updating description |
---|
| 332 | |
---|
| 333 | * Thu May 01 2003 Christian Schaller <uraeus@gnome.org> |
---|
| 334 | - Fix up the spec file for current release |
---|
| 335 | |
---|
| 336 | * Mon Sep 23 2002 Dag Wieers <dag@wieers.com> |
---|
| 337 | - Update to 0.2.6 |
---|
| 338 | |
---|
| 339 | * Thu Sep 12 2002 Dag Wieers <dag@wieers.com> |
---|
| 340 | - Update to 0.2.5 |
---|
| 341 | - Changed SPEC to benefit from macros |
---|