5 Group: Applications/Core Applications
7 Source0: %{name}-%{version}.tar.gz
8 BuildRequires: pkgconfig(aul)
9 BuildRequires: pkgconfig(dbus-1)
10 BuildRequires: pkgconfig(dbus-glib-1)
11 BuildRequires: pkgconfig(dlog)
12 BuildRequires: pkgconfig(vconf)
13 BuildRequires: pkgconfig(capi-appfw-package-manager)
14 BuildRequires: pkgconfig(db-util)
15 BuildRequires: pkgconfig(libtzplatform-config)
17 Requires(post): /sbin/ldconfig
18 requires(postun): /sbin/ldconfig
20 Client/Server library for updating badge information
26 Summary: Badge library (devel)
27 Group: Development/Libraries
28 Requires: %{name} = %{version}-%{release}
31 Development files needed to build software that needs to system a system badge.
33 %package service-devel
34 Summary: Badge library (service-devel)
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
38 %description service-devel
39 Development files needed to build badge service
42 %if 0%{?tizen_build_binary_release_type_eng}
43 export CFLAGS="$CFLAGS -DTIZEN_ENGINEER_MODE"
44 export CXXFLAGS="$CXXFLAGS -DTIZEN_ENGINEER_MODE"
45 export FFLAGS="$FFLAGS -DTIZEN_ENGINEER_MODE"
47 %if 0%{?sec_build_binary_debug_enable}
48 export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
49 export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
50 export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
52 export LDFLAGS+="-Wl,--rpath=%{_prefix}/lib -Wl,--as-needed"
53 LDFLAGS="$LDFLAGS" %cmake .
59 mkdir -p %{buildroot}/usr/share/license
60 cp -f LICENSE %{buildroot}/usr/share/license/%{name}
66 if [ ! -d %{TZ_SYS_DB} ]
71 %postun -p /sbin/ldconfig
74 %manifest badge.manifest
75 %defattr(-,root,root,-)
76 %{_libdir}/libbadge.so*
77 %{_datarootdir}/license/%{name}
78 %{_includedir}/badge/badge.h
79 %{_includedir}/badge/badge_error.h
80 %{_includedir}/badge/badge_internal.h
83 %defattr(-,root,root,-)
84 %{_includedir}/badge/badge.h
85 %{_includedir}/badge/badge_error.h
86 %{_includedir}/badge/badge_internal.h
87 %{_includedir}/badge/badge_db.h
88 %{_includedir}/badge/badge_setting_service.h
89 %{_libdir}/pkgconfig/%{name}.pc