Changes of Revision 11

djv.spec Changed
x
 
1
@@ -126,20 +126,14 @@
2
 Help documentation for %{name}.
3
 
4
 %prep
5
-%setup -q -n %{name}-%{version}
6
-
7
-%patch1 -p1
8
-%patch2 -p1
9
-%patch4 -p1
10
-%patch5 -p1
11
-%patch6 -p1
12
-%patch7 -p1
13
+%autosetup -p1 -n %{name}-%{version}
14
 
15
+%build
16
 # Change exec-path
17
 sed -i '/Exec/s|[/].*|%{name}_view|' $(grep -rl 'djv_view.sh')
18
 sed -i~ /tests/d CMakeLists.txt
19
 
20
-%build
21
+CXXFLAGS='%{optflags} -std=gnu++11'
22
 %cmake \
23
       -DCMAKE_SKIP_RPATH=OFF
24
 
25
@@ -162,7 +156,7 @@
26
 
27
 %fdupes -s %{buildroot}/%{_datadir}
28
 
29
-%check
30
+#check
31
 # Only local test
32
 #sed -i '/ctest/s|\(bin/ctest\)|\1 -V|' build/Makefile
33
 #make test -C build
34
@@ -182,8 +176,8 @@
35
 %icon_theme_cache_postun
36
 
37
 %files
38
-%defattr(-,root,root)
39
-%doc LICENSE README
40
+%doc README
41
+%license LICENSE
42
 %{_bindir}/%{name}_convert
43
 %{_bindir}/%{name}_info
44
 %{_bindir}/%{name}_ls
45
@@ -195,20 +189,16 @@
46
 %exclude %{_libdir}/%{name}/lib%{name}*Plugin.so
47
 
48
 %files -n lib%{name}Core%{soname}
49
-%defattr(-,root,root)
50
 %{_libdir}/lib%{name}*.so.*
51
 
52
 %files plugins
53
-%defattr(-,root,root)
54
 %{_libdir}/%{name}/lib%{name}*Plugin.so
55
 
56
 %files devel
57
-%defattr(-,root,root)
58
 %{_includedir}/%{name}*.h
59
 %{_libdir}/lib%{name}*.so
60
 
61
 %files doc
62
-%defattr(-,root,root)
63
 %dir %{_datadir}/%{name}
64
 %dir %{_datadir}/%{name}/doc
65
 %{_datadir}/%{name}/doc
66