Browse Source

Apply first changes from Fedora submission pre-review by @vondruch

Ref:

    https://bugzilla.redhat.com/show_bug.cgi?id=1586291#c1
Alois Mahdal 6 years ago
parent
commit
b1fa0b73f3
1 changed files with 3 additions and 11 deletions
  1. 3
    11
      slop.spec.in

+ 3
- 11
slop.spec.in View File

15
 BuildRequires: libXrender-devel
15
 BuildRequires: libXrender-devel
16
 BuildRequires: mesa-libEGL-devel
16
 BuildRequires: mesa-libEGL-devel
17
 
17
 
18
-Requires: libslopy = %{version}-%{release}
19
 %description
18
 %description
20
 slop (Select Operation) is an application that queries for a selection
19
 slop (Select Operation) is an application that queries for a selection
21
 from the user and prints the region to stdout.
20
 from the user and prints the region to stdout.
22
 
21
 
23
 %package -n libslopy
22
 %package -n libslopy
24
 Summary: Select Operation
23
 Summary: Select Operation
25
-Group: System Environment/Libraries
26
 %description -n libslopy
24
 %description -n libslopy
27
 slop (Select Operation) is an application that queries for a selection
25
 slop (Select Operation) is an application that queries for a selection
28
 from the user and prints the region to stdout.
26
 from the user and prints the region to stdout.
31
 
29
 
32
 %package -n libslopy-devel
30
 %package -n libslopy-devel
33
 Summary:    Select Operation
31
 Summary:    Select Operation
34
-Group: Development/Libraries
35
-Requires: libslopy = %{version}-%{release}
36
 %description -n libslopy-devel
32
 %description -n libslopy-devel
37
 slop (Select Operation) is an application that queries for a selection
33
 slop (Select Operation) is an application that queries for a selection
38
 from the user and prints the region to stdout.
34
 from the user and prints the region to stdout.
43
 %autosetup -n %{name}-%{version}
39
 %autosetup -n %{name}-%{version}
44
 
40
 
45
 %build
41
 %build
46
-CXXFLAGS="${CXXFLAGS:-%{optflags}}"; export CXXFLAGS
47
-cmake -DCMAKE_INSTALL_PREFIX="/usr" ./
42
+%cmake .
48
 
43
 
49
 %install
44
 %install
50
 %make_install
45
 %make_install
51
 
46
 
52
-%post -n libslopy
53
-/sbin/ldconfig
54
-
55
-%postun -n libslopy
56
-/sbin/ldconfig
47
+%check
48
+ctest -V %{?_smp_mflags}
57
 
49
 
58
 %files
50
 %files
59
 %{_bindir}/slop
51
 %{_bindir}/slop