]> git.pld-linux.org Git - packages/simage.git/blob - simage.spec
- updated to 1.8.3
[packages/simage.git] / simage.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_with     qt              # load/save images using Qt
5 %bcond_with     qt4             # Qt4 instead of Qt5
6 %bcond_with     qt6             # Qt6 instead of Qt5
7 #
8 Summary:        Library with image format loaders and front-ends to common import libraries
9 Summary(pl.UTF-8):      Biblioteka z wczytywaniem formatów obrazów oraz frontendami do popularnych bibliotek importujących
10 Name:           simage
11 Version:        1.8.3
12 Release:        1
13 License:        MIT, MPEG
14 Group:          Libraries
15 #Source0Download: https://github.com/coin3d/simage/releases
16 Source0:        https://github.com/coin3d/simage/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
17 # Source0-md5:  af4faec8a7881937cc6b4440e45405bf
18 Patch0:         %{name}-doxygen.patch
19 URL:            https://github.com/coin3d/simage
20 %if %{with qt}
21 %if %{with qt4}
22 BuildRequires:  QtCore-devel >= 4
23 BuildRequires:  QtGui-devel >= 4
24 %else
25 %if %{with qt6}
26 BuildRequires:  Qt6Core-devel >= 6
27 BuildRequires:  Qt6Gui-devel >= 6
28 %else
29 BuildRequires:  Qt5Core-devel >= 5
30 BuildRequires:  Qt5Gui-devel >= 5
31 %endif
32 %endif
33 %endif
34 BuildRequires:  cmake >= 3.0
35 %{?with_apidocs:BuildRequires:  doxygen}
36 BuildRequires:  flac-devel
37 BuildRequires:  giflib-devel >= 5.2.1-2
38 BuildRequires:  jasper-devel
39 BuildRequires:  libjpeg-devel
40 BuildRequires:  libogg-devel
41 BuildRequires:  libpng-devel
42 BuildRequires:  libsndfile-devel
43 BuildRequires:  libstdc++-devel
44 BuildRequires:  libtiff-devel
45 BuildRequires:  libvorbis-devel
46 BuildRequires:  opus-devel
47 BuildRequires:  rpmbuild(macros) >= 1.752
48 BuildRequires:  xz-devel
49 BuildRequires:  zlib-devel
50 BuildRequires:  zstd-devel
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %description
54 This is simage, a library with image format loaders and front-ends to
55 common import libraries. simage is meant for use with applications
56 which reads image files as textures.
57
58 %description -l pl.UTF-8
59 Ten pakiet zawiera bibliotekę simage, obsługującą wczytywanie różnych
60 formatów obrazów oraz frontendy do popularnych bibliotek
61 importujących. Biblioteka jest przeznaczona do użycia w aplikacjach
62 czytających pliki obrazów jako tekstury.
63
64 %package devel
65 Summary:        Header files for simage library
66 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki simage
67 Group:          Development/Libraries
68 Requires:       %{name} = %{version}-%{release}
69 Requires:       flac-devel
70 Requires:       jasper-devel
71 Requires:       libjpeg-devel
72 Requires:       libogg-devel
73 Requires:       libpng-devel
74 Requires:       libsndfile-devel
75 Requires:       libtiff-devel
76 Requires:       libvorbis-devel
77 Requires:       opus-devel
78 Requires:       xz-devel
79 Requires:       zlib-devel
80 Requires:       zstd-devel
81
82 %description devel
83 Header files for simage library.
84
85 %description devel -l pl.UTF-8
86 Pliki nagłówkowe biblioteki simage.
87
88 %package apidocs
89 Summary:        API documentation for simage library
90 Summary(pl.UTF-8):      Dokumentacja API biblioteki simage
91 Group:          Documentation
92 BuildArch:      noarch
93
94 %description apidocs
95 API documentation for simage library.
96
97 %description apidocs -l pl.UTF-8
98 Dokumentacja API biblioteki simage.
99
100 %prep
101 %setup -q -n %{name}
102 %patch0 -p1
103
104 %build
105 install -d builddir
106 cd builddir
107 %cmake .. \
108         %{?with_apidocs:-DSIMAGE_BUILD_DOCUMENTATION=ON} \
109         -DSIMAGE_LIBJASPER_SUPPORT=ON \
110         %{?with_qt:-DSIMAGE_USE_QIMAGE=ON} \
111         %{?with_qt4:-DSIMAGE_USE_QT5=OFF} \
112         -DSIMAGE_XWD_SUPPORT=ON
113
114 %{__make}
115
116 %install
117 rm -rf $RPM_BUILD_ROOT
118
119 %{__make} -C builddir install \
120         DESTDIR=$RPM_BUILD_ROOT
121
122 # packaged as %doc
123 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/html
124
125 %clean
126 rm -rf $RPM_BUILD_ROOT
127
128 %post   -p /sbin/ldconfig
129 %postun -p /sbin/ldconfig
130
131 %files
132 %defattr(644,root,root,755)
133 %doc AUTHORS COPYING ChangeLog LICENSE LICENSE.mpeg2enc NEWS README
134 %attr(755,root,root) %{_libdir}/libsimage.so.*.*.*
135 %attr(755,root,root) %ghost %{_libdir}/libsimage.so.20
136
137 %files devel
138 %defattr(644,root,root,755)
139 %attr(755,root,root) %{_bindir}/simage-config
140 %attr(755,root,root) %{_libdir}/libsimage.so
141 %{_includedir}/simage.h
142 %{_pkgconfigdir}/simage.pc
143 %{_libdir}/cmake/simage-%{version}
144 %dir %{_datadir}/Coin
145 %dir %{_datadir}/Coin/conf
146 %{_datadir}/Coin/conf/simage-default.cfg
147
148 %if %{with apidocs}
149 %files apidocs
150 %defattr(644,root,root,755)
151 %doc builddir/html/*
152 %endif
This page took 0.117944 seconds and 4 git commands to generate.