3 %bcond_with tests # perform "make test"
5 Summary: Graphics Transformation Languages
6 Summary(pl.UTF-8): Graphics Transformation Languages - języki przekształceń graficznych
12 Source0: http://download.opengtl.org/%{name}-%{version}.tar.bz2
13 # Source0-md5: 8a9673c648ef5af4fcc7f60bb8282811
14 %{?with_tests:Source1: http://download.opengtl.org/tests-data-%{version}.tar.bz2}
15 Patch0: %{name}-llvm-3.3.patch
16 Patch1: %{name}-includes.patch
17 Patch2: %{name}-link.patch
18 URL: http://opengtl.org/
19 BuildRequires: ImageMagick
20 BuildRequires: cmake >= 2.6
21 BuildRequires: doxygen
22 BuildRequires: ghostscript
23 BuildRequires: graphviz
24 BuildRequires: libpng-devel
25 BuildRequires: llvm-devel >= 3.3
26 BuildRequires: texlive-dvips
27 BuildRequires: texlive-latex
28 BuildRequires: texlive-makeindex
29 BuildRequires: zlib-devel
30 Requires: %{name}-libs = %{version}-%{release}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 OpenGTL provides tools, languages and libraries to create generic
35 transformations for graphics. These transformations can be used by
36 different programs, e.g. Krita, Gimp, CinePaint, etc.
38 %description -l pl.UTF-8
39 OpenGTL udostępnia narzędzia, języki i biblioteka do tworzenia
40 ogólnych przekształceń grafiki. Przekształcenia te mogą być później
41 wykorzystywane przez różne programy, takie jak Krita, Gimp czy
45 Summary: Runtime OpenGTL libraries
46 Summary(pl.UTF-8): Biblioteki współdzielone OpenGTL
50 OpenGTL shared libraries.
52 %description libs -l pl.UTF-8
53 Biblioteki współdzielone OpenGTL.
56 Summary: Header files for OpenGTL
57 Summary(pl.UTF-8): Pliki nagłówkowe OpenGTL
58 Group: Development/Languages
59 Requires: %{name}-libs = %{version}-%{release}
60 Requires: llvm-devel >= 3.3
63 This package contains the header files needed to develop new native
64 programs that use the OpenGTL libraries.
66 %description devel -l pl.UTF-8
67 Ten pakiet zawiera pliki nagłówkowe niezbędne do tworzenia nowych
68 programów wykorzystujących biblioteki OpenGTL.
71 %setup -q %{?with_tests:-a1}
80 -DOPENGTL_BUILD_OpenRIJN:BOOL=ON \
81 -DOPENGTL_BUILD_TESTS:BOOL=ON \
82 %{?with_tests:-DOPENGTL_TESTS_DATA:PATH=$PWD/../tests-data}
90 export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_npkgconfigdir}:$RPM_BUILD_ROOT%{_pkgconfigdir}
91 test "$(pkg-config --modversion GTLCore)" = "%{version}"
92 test "$(pkg-config --modversion GTLImageIO)" = "%{version}"
93 test "$(pkg-config --modversion OpenCTL)" = "%{version}"
94 test "$(pkg-config --modversion OpenShiva)" = "%{version}"
95 # some known failures due to missing test data , 17 tests failed out of 189
96 # *with* test data, down to 2:
97 # The following tests FAILED:
98 # 177 - PerlinNoise.shiva (Failed)
99 # 189 - grayscaliser.shiva (Failed)
100 %{__make} test -C %{_target_platform} ||:
104 rm -rf $RPM_BUILD_ROOT
106 %{__make} -C build install/fast \
107 DESTDIR=$RPM_BUILD_ROOT
110 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/OpenGTL
113 rm -rf $RPM_BUILD_ROOT
115 %post libs -p /sbin/ldconfig
116 %postun libs -p /sbin/ldconfig
119 %defattr(644,root,root,755)
120 %doc COPYING OpenGTL/README
121 %attr(755,root,root) %{_bindir}/ctli
122 %attr(755,root,root) %{_bindir}/ctltc
123 %attr(755,root,root) %{_bindir}/gtlconvert
124 %attr(755,root,root) %{_bindir}/imagecompare
125 %attr(755,root,root) %{_bindir}/shiva
126 %attr(755,root,root) %{_bindir}/shivacheck
127 %attr(755,root,root) %{_bindir}/shivainfo
128 %attr(755,root,root) %{_bindir}/shivanimator
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libGTLCore.so.%{version}
134 %attr(755,root,root) %ghost %{_libdir}/libGTLCore.so.0.8
135 %attr(755,root,root) %{_libdir}/libGTLFragment.so.%{version}
136 %attr(755,root,root) %ghost %{_libdir}/libGTLFragment.so.0.8
137 %attr(755,root,root) %{_libdir}/libGTLImageIO.so.%{version}
138 %attr(755,root,root) %ghost %{_libdir}/libGTLImageIO.so.0.8
139 %attr(755,root,root) %{_libdir}/libOpenCTL.so.%{version}
140 %attr(755,root,root) %ghost %{_libdir}/libOpenCTL.so.0.8
141 %attr(755,root,root) %{_libdir}/libOpenShiva.so.%{version}
142 %attr(755,root,root) %ghost %{_libdir}/libOpenShiva.so.0.8
143 %dir %{_libdir}/GTLImageIO
144 %dir %{_libdir}/GTLImageIO/Extensions
145 %attr(755,root,root) %{_libdir}/GTLImageIO/Extensions/lib*.so
148 %defattr(644,root,root,755)
149 %doc html/* build/OpenShiva/doc/reference/ShivaRef.pdf
150 %attr(755,root,root) %{_bindir}/ctlc
151 %attr(755,root,root) %{_bindir}/shivac
152 %attr(755,root,root) %{_bindir}/shivatester
153 %attr(755,root,root) %{_libdir}/libGTLCore.so
154 %attr(755,root,root) %{_libdir}/libGTLFragment.so
155 %attr(755,root,root) %{_libdir}/libGTLImageIO.so
156 %attr(755,root,root) %{_libdir}/libOpenCTL.so
157 %attr(755,root,root) %{_libdir}/libOpenShiva.so
158 %{_includedir}/GTLCore
159 %{_includedir}/GTLFragment
160 %{_includedir}/GTLImageIO
161 %{_includedir}/OpenCTL
162 %{_includedir}/OpenShiva
163 %{_pkgconfigdir}/GTLCore.pc
164 %{_pkgconfigdir}/GTLImageIO.pc
165 %{_pkgconfigdir}/OpenCTL.pc
166 %{_pkgconfigdir}/OpenShiva.pc