File: mingw-log4cplus.spec

package info (click to toggle)
log4cplus 1.1.2-3.2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 4,844 kB
  • ctags: 2,385
  • sloc: cpp: 13,461; sh: 11,638; ansic: 2,120; makefile: 357; perl: 82
file content (125 lines) | stat: -rwxr-xr-x 4,003 bytes parent folder | download
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
Name:           log4cplus
Version:        1.1.2
Release:        1%{?dist}
Summary:        log4cplus, C++ logging library

License:        Apache
Group:          Development/Libraries
URL:            http://log4cplus.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/1.1.2/log4cplus-1.1.2.tar.gz

BuildArch:      noarch

BuildRequires:  mingw32-filesystem >= 95
BuildRequires:  mingw32-gcc
BuildRequires:  mingw32-binutils
BuildRequires:  mingw32-gettext
BuildRequires:  mingw32-win-iconv
BuildRequires:  mingw32-zlib

BuildRequires:  mingw64-filesystem >= 95
BuildRequires:  mingw64-gcc
BuildRequires:  mingw64-binutils
BuildRequires:  mingw64-gettext
BuildRequires:  mingw64-win-iconv
BuildRequires:  mingw64-zlib

%description
log4cplus is a simple to use C++ logging API providing thread-safe, 
flexible, and arbitrarily granular control over log management and 
configuration. It is modeled after the Java log4j API.

# Strip removes essential information from the .dll.a file, so disable it
%define __strip /bin/true

# Win32
%package -n mingw32-log4cplus
Summary:    MinGW compiled log4cplus library for the Win32 target

%description -n mingw32-log4cplus
MinGW compiled log4cplus library for the Win32 target

%package -n mingw32-log4cplus-devel
Summary:    Headers for the MinGW compiled log4cplus library for the Win32 target

%description -n mingw32-log4cplus-devel
Headers for the MinGW compiled log4cplus library for the Win32 target

# Win64
%package -n mingw64-log4cplus
Summary:    MinGW compiled log4cplus library for the Win64 target

%description -n mingw64-log4cplus
MinGW compiled log4cplus library for the Win64 target

%package -n mingw64-log4cplus-devel
Summary:    Headers for the MinGW compiled log4cplus library for the Win64 target

%description -n mingw64-log4cplus-devel
Headers for the MinGW compiled log4cplus library for the Win64 target

%prep
%setup -q -n log4cplus-%{version}

%build
%mingw_configure
%mingw_make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
%mingw_make_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name "*.la" -delete
find $RPM_BUILD_ROOT -name "stamp-*" -delete
find $RPM_BUILD_ROOT -name "*.in" -delete
find $RPM_BUILD_ROOT -name macosx.h -delete
find $RPM_BUILD_ROOT -name windowsh-inc.h -delete
find $RPM_BUILD_ROOT -name cygwin-win32.h -delete
find $RPM_BUILD_ROOT -name syncprims-win32.h -delete
# find $RPM_BUILD_ROOT -name liblog4cplus.a -delete
find $RPM_BUILD_ROOT -name .svn -type d -exec find '{}' -delete \;

# Win32
%files -n mingw32-log4cplus
%{mingw32_bindir}/lib*.dll

%files -n mingw32-log4cplus-devel
%defattr(-,root,root,755)
%{mingw32_includedir}/log4cplus/*.h
%{mingw32_includedir}/log4cplus/helpers/*.h
%{mingw32_includedir}/log4cplus/spi/*.h
%{mingw32_includedir}/log4cplus/boost/*.hxx
%{mingw32_includedir}/log4cplus/config.hxx
%{mingw32_includedir}/log4cplus/config/defines.hxx
%{mingw32_includedir}/log4cplus/config/win32.h
%{mingw32_includedir}/log4cplus/internal/*.h
%{mingw32_includedir}/log4cplus/thread/impl/*.h
%{mingw32_includedir}/log4cplus/thread/*.h
%attr(644,root,root) 
%{mingw32_libdir}/*.dll.a
%{mingw32_libdir}/liblog4cplus.a
%{mingw32_libdir}/pkgconfig/log4cplus.pc

# Win64
%files -n mingw64-log4cplus
%{mingw64_bindir}/lib*.dll

%files -n mingw64-log4cplus-devel
%defattr(-,root,root,755)
%{mingw64_includedir}/log4cplus/*.h
%{mingw64_includedir}/log4cplus/helpers/*.h
%{mingw64_includedir}/log4cplus/spi/*.h
%{mingw64_includedir}/log4cplus/boost/*.hxx
%{mingw64_includedir}/log4cplus/config.hxx
%{mingw64_includedir}/log4cplus/config/defines.hxx
%{mingw64_includedir}/log4cplus/config/win32.h
%{mingw64_includedir}/log4cplus/internal/*.h
%{mingw64_includedir}/log4cplus/thread/impl/*.h
%{mingw64_includedir}/log4cplus/thread/*.h
%attr(644,root,root) 
%{mingw64_libdir}/*.dll.a
%{mingw64_libdir}/liblog4cplus.a
%{mingw64_libdir}/pkgconfig/log4cplus.pc

%changelog
* Wed Aug 14 2013 John Smits <japsmits@gmail.com> - 1.1.1-1
- Initial release