/
atomicparsley.spec
57 lines (43 loc) · 1.16 KB
/
atomicparsley.spec
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
# Spec is based on MIB work
%define oname AtomicParsley
Name: atomicparsley
Version: 0.9.0
Release: 2
Summary: Command-Line Program to Read and Set iTunes-style Metadata Tags
License: GPLv2
Group: Sound
Url: http://atomicparsley.sourceforge.net
Source0: http://prdownloads.sourceforge.net/atomicparsley/%{oname}-source-%{version}.zip
Patch1: AtomicParsley-fix_bad_math.patch
BuildRequires: libstdc++-devel
BuildRequires: glibc-devel
BuildRequires: unzip
%description
AtomicParsley is a lightweight command line program that can read and set
iTunes-style metadata tags in MPEG-4 files & 3gp assets in 3GPP/3GPP2 files.
%prep
%setup -q -n %{oname}-source-%{version}
%patch1
%__sed -i '
s/g++/$CXX/g;
s/-g//g;
s/-O2/$OPTFLAGS/g;
' build
%__sed -i '1aset -e' build
%build
CXX="%__cxx" \
OPTFLAGS="%{optflags} -Wall -Wno-deprecated -fno-strict-aliasing" \
./build
%install
%__rm -rf %{buildroot}
%__install -D -m0755 %{oname} %{buildroot}%{_bindir}/%{name}
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{name}
%changelog
* Fri Feb 17 2012 Andrey Bondrov <abondrov@mandriva.org> 0.9.0-1
+ Revision: 775963
- imported package atomicparsley