-
Notifications
You must be signed in to change notification settings - Fork 140
/
Ptex.spec.in
99 lines (77 loc) · 2.08 KB
/
Ptex.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
Name: Ptex
Version: @@VERSION@@
Release: @@RELEASE@@%{?dist}
Summary: Per-Face Texture Mapping for Production Rendering
Group: System Environment/Libraries
License: BSD
URL: https://github.com/wdas/ptex
Source0: %{name}-%{version}.tar.gz
Requires: zlib
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: cmake
BuildRequires: zlib-devel
BuildRequires: zlib-static
prefix: %{_prefix}
BuildRoot: %{_topdir}/BUILDROOT/%{name}-%{version}
%description
Ptex is a texture mapping system developed by
Walt Disney Animation Studios for production-quality rendering.
%package all
Summary: Meta-package for all Ptex components
Group: System Environment/Libraries
Requires: Ptex = %{version}
Requires: Ptex-docs = %{version}
Requires: Ptex-devel = %{version}
%description all
Meta-package for Ptex
%package docs
Summary: Ptex documentation
Requires: Ptex = %{version}
%description docs
Documentation for Ptex
%package devel
Summary: Ptex headers and libraries
Requires: Ptex = %{version}
%description devel
Development headers and static libraries for Ptex
%prep
%setup -q
%build
%install
%{__make} prefix=%{_prefix}
%{__make} prefix=%{_prefix} DESTDIR=%{buildroot} install
# Create a pkgconfig file
%{__mkdir_p} %{buildroot}%{_datadir}/pkgconfig
cat >%{buildroot}%{_datadir}/pkgconfig/Ptex.pc << \-EOF
# pkg-config configuration for Ptex
prefix=%{_prefix}
libdir=${prefix}/%{_lib}
includedir=${prefix}/include
Name: Ptex
Description: Per-Face Texture Mapping for Production Rendering
Version: %{version}
Cflags: -I${includedir}
Libs: -L${libdir} -l:libPtex.a -lz
-EOF
%clean
rm -rf %{buildroot}
%post
%postun
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_libdir}/libPtex.so.*
%files docs
%defattr(-,root,root,-)
%{_defaultdocdir}/ptex
%files devel
%defattr(-,root,root,-)
%{_includedir}/*.h
%{_libdir}/cmake/Ptex
%{_libdir}/libPtex.a
%{_libdir}/libPtex.so
%{_datadir}/pkgconfig/Ptex.pc
%files all
# This is a virtual package and contains no files