Changeset 1640


Ignore:
Timestamp:
May 24, 2019, 3:54:46 PM (6 years ago)
Author:
Silvan Scherrer
Message:

spec: freetype: Release version 2.10.0-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/freetype.spec

    r1211 r1640  
     1# no demos atm
     2%global with_demos 0
     3
     4# no utf8 conversion
     5%global with_convert 0
    16
    27Summary: A free and portable font rendering engine
    38Name: freetype
    4 Version: 2.8.0
     9Version: 2.10.0
    510Release: 1%{?dist}
    611License: (FTL or GPLv2+) and BSD and MIT and Public Domain and zlib with acknowledgement
     
    914
    1015Vendor: bww bitwise works GmbH
    11 %scm_source  svn http://svn.netlabs.org/repos/ports/freetype2/trunk 2215
    12 #Source:  http://download.savannah.gnu.org/releases/freetype/freetype-%{version}.tar.bz2
    13 #Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
    14 #Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2
     16%scm_source  github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
     17Source1: http://download.savannah.gnu.org/releases/freetype/freetype-doc-%{version}.tar.bz2
     18%if %{with_demos}
     19Source2: http://download.savannah.gnu.org/releases/freetype/ft2demos-%{version}.tar.bz2
     20%endif
    1521
    16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
    17 
     22BuildRequires: gcc
    1823BuildRequires: libpng-devel
    1924BuildRequires: zlib-devel
     
    2126
    2227Provides: %{name}-bytecode
     28Provides: %{name}-subpixel
    2329
    2430%description
     
    3137
    3238
    33 #%package demos
    34 #Summary: A collection of FreeType demos
    35 #Group: System Environment/Libraries
    36 #Requires: %{name} = %{version}-%{release}
     39%if %{with_demos}
     40%package demos
     41Summary: A collection of FreeType demos
     42Group: System Environment/Libraries
     43Requires: %{name} = %{version}-%{release}
    3744
    38 #%description demos
    39 #The FreeType engine is a free and portable font rendering
    40 #engine, developed to provide advanced font support for a variety of
    41 #platforms and environments.  The demos package includes a set of useful
    42 #small utilities showing various capabilities of the FreeType library.
    43 
     45%description demos
     46The FreeType engine is a free and portable font rendering
     47engine, developed to provide advanced font support for a variety of
     48platforms and environments.  The demos package includes a set of useful
     49small utilities showing various capabilities of the FreeType library.
     50%endif
    4451
    4552%package devel
     
    4754Group: Development/Libraries
    4855Requires: %{name} = %{version}-%{release}
     56Requires: pkgconf
    4957
    5058%description devel
     
    5967%prep
    6068%scm_setup
     69%setup -T -D -b 1
    6170autogen.sh
    6271
    6372%build
    6473rm -f config.mk
    65 export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
     74export LDFLAGS=" -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp -lcx"
    6675export VENDOR="%{vendor}"
    6776%configure --disable-static \
     
    6978           --with-bzip2=yes \
    7079           --with-png=yes \
    71            --with-harfbuzz=no
     80           --with-harfbuzz=no \
     81           --enable-freetype-config
    7282
    7383make %{?_smp_mflags}
    7484
     85%if %{with_demos}
     86# Build demos
     87pushd ft2demos-%{version}
     88make TOP_DIR=".."       
     89popd
     90%endif
     91
     92%if %{with_convert}
     93# Convert FTL.txt and example3.cpp to UTF-8
     94cd docs
     95iconv -f latin1 -t utf-8 < FTL.TXT > FTL.TXT.tmp && \   
     96touch -r FTL.TXT FTL.TXT.tmp && \
     97mv FTL.TXT.tmp FTL.TXT
     98
     99iconv -f iso-8859-1 -t utf-8 < "tutorial/example3.cpp" > "tutorial/example3.cpp.utf8"
     100touch -r tutorial/example3.cpp tutorial/example3.cpp.utf8 && \
     101mv tutorial/example3.cpp.utf8 tutorial/example3.cpp
     102cd ..
     103%endif
     104
    75105
    76106%install
    77 rm -rf $RPM_BUILD_ROOT
    78107
    79108%make_install gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
    80109
     110%if %{with_demos}
     111{
     112  for ftdemo in ftbench ftchkwd ftmemchk ftpatchk fttimer ftdump ftlint ftmemchk ftvalid ; do
     113      builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir}
     114  done
     115}
     116
     117{
     118  for ftdemo in ftdiff ftgamma ftgrid ftmulti ftstring fttimer ftview ; do
     119      builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir}
     120  done
     121}
     122%endif
     123       
    81124# Don't package static a or .la files
    82125rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
    83 
    84 
    85 %clean
    86 rm -rf $RPM_BUILD_ROOT
    87126
    88127
     
    95134
    96135
    97 #%files demos
    98 #%{_bindir}/ftbench
    99 #%{_bindir}/ftchkwd
    100 #%{_bindir}/ftmemchk
    101 #%{_bindir}/ftpatchk
    102 #%{_bindir}/fttimer
    103 #%{_bindir}/ftdump
    104 #%{_bindir}/ftlint
    105 #%{_bindir}/ftmemchk
    106 #%{_bindir}/ftvalid
    107 #%doc ChangeLog README
     136%if %{with_demos}
     137%files demos
     138%{_bindir}/ftbench
     139%{_bindir}/ftchkwd
     140%{_bindir}/ftmemchk
     141%{_bindir}/ftpatchk
     142%{_bindir}/fttimer
     143%{_bindir}/ftdump
     144%{_bindir}/ftlint
     145%{_bindir}/ftvalid
     146%doc ChangeLog README
     147%endif
    108148
    109149
    110150%files devel
    111 %doc docs/CHANGES docs/formats.txt
    112 #%doc docs/ft2faq.html
     151%doc docs/CHANGES docs/formats.txt docs/ft2faq.html
    113152%dir %{_includedir}/freetype2
    114153%{_datadir}/aclocal/freetype2.m4
    115154%{_includedir}/freetype2/*
    116 %{_libdir}/freetype*.a
     155%{_libdir}/freetype*_dll.a
    117156%{_bindir}/freetype-config
    118157%{_libdir}/pkgconfig/freetype2.pc
    119 #%doc docs/design
    120 #%doc docs/glyphs
     158%doc docs/design
     159%doc docs/glyphs
    121160%doc docs/reference
    122 #%doc docs/tutorial
     161%doc docs/tutorial
    123162%{_mandir}/man1/*
    124163
    125164
    126165%changelog
     166* Fri May 24 2019 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.10.0-1
     167- updated source to 2.10.0
     168- moved source to github
     169- adjusted spec according to fedora
     170- deliver docs as well
     171
    127172* Wed Aug 09 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 2.8.0-1
    128173- updated source to 2.8.0
Note: See TracChangeset for help on using the changeset viewer.